Skip to content

wislon/xfdemos

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 

Basic demo xamarin forms app base - actual demo apps/functions will be built into or forked from this.

Custom Switch - Change Colour Based on On/Off State

See CustomControlPage example. I wrote a blog post about it.

Android implementation

Before implementation on Android. Note that you can't see the track of the Switch when it's off ('false').

Android - Before implementation

After adding some garish colours:

Android - After implementation

iOS implementation

Just proving the concept on iOS. Before...

iOS - Before implementation

...and after.

iOS - After implementation


ListView Item Selection - Change its background colour:

See ListViewDemoPage example. I also wrote a short blog post about it.

(Apologies for the janky iOS gifs, they were done from the simulator running over a long-distance wifi connection)

iOS implementation

Before implementing on iOS. Note that you can't tell when an item is selected.

iOS - Before implementation

After implementing on iOS (change selected colour to teal)

iOS - After implementation

Android implementation

Before implementing on Android (ugh orange, from the default theme)

Android - Before implementation

After implementing on Android (better, teal)

Android - After implementation

About

Simple Xamarin.Forms demos and how-tos

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages