BEST PRACTICE 1:
Xamarin Forms Best Practices
Xamarin Forms
BEST PRACTICE 2:
Use async and await when you can
BEST PRACTICE 3:
Don't use transparency if you don't need it
BEST PRACTICE 4:
Don't use a Grid when StackLayout would work
BEST PRACTICE 5:
Don't bind things that can be set statically
BEST PRACTICE 6:
Don't use multiple StackLayouts when the Grid could be used
BEST PRACTICE 7:
Do not use a StackLayout to host a single child
BEST PRACTICE 8:
Do not set values of your Xamarin Foms Control properties to default values
BEST PRACTICE 9:
When using Grid, make sure that as few of your row/column definitions are Auto sized
BEST PRACTICE 10:
When using a StackLayout, ensure that only one child is set to LayoutOptions.Expands
BEST PRACTICE 11:
Don't set the VerticalOptions and HorizontalOptions properties of a layout unless required
BEST PRACTICE 12:
Do not overuse AbsoluteLayout
BEST PRACTICE 13:
Optimize image resources
BEST PRACTICE 14:
Use XAML compilation
BEST PRACTICE 15:
Use dependency injection
BEST PRACTICE 16:
Use MVVM framework or use your own one
BEST PRACTICE 17:
Use the right time zone
BEST PRACTICE 18:
Use caching
BEST PRACTICE 19:
Use animations and micro interactions
BEST PRACTICE 20:
Handle permission requests
BEST PRACTICE 21:
Handle connectivity
BEST PRACTICE 22:
Show an activity indicator when you are loading data
BEST PRACTICE 23:
Use empty states to improve user experience
BEST PRACTICE 24:
Use commands instead of events
BEST PRACTICE 25:
Use triggers and converters to avoid using code behind
BEST PRACTICE 26:
Define your view model in design time data to get IntelliSense
BEST PRACTICE 27:
Use design time data
- Become a Best practice hero.Help us to grow the catalogue of best practices.
Recently added best practices
Anonymous
flex-box
flex-box
Anonymous
flex-box
flex-box
Anonymous
a
a
Anonymous
hello
hello
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e