Creating and implementing Styles in your App
In this section, we will be taking a look at the various styles that are offered by the Xamarin.Forms
platform, which you can implement in your XAML pages. Styles
can be created to customize each control's appearance, and we will look at how to create Global Styles, which are made available globally by adding them into the application's ResourceDictionary
, to avoid duplication of styles across your XAML pages and controls.
Lastly, we will also look at how we can define Implicit and Explicit Styles, how we can apply these to controls in your XAML pages, and how we can work with Device
styles that come as part of the Xamarin.Forms
platform and apply these to your Label
controls in your XAML pages.
Creating and implementing Global Styles using XAML
In this section, we will take a look at how to update our application's App.xaml
file and define a Global Style that can be used by each of our XAML pages in our TrackMyWalks
app. The advantage of declaring...