O'Reilly logo

Mastering Xamarin UI Development - Second Edition by Steven F. Daniel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Updating our WalkTrailInfoPage to use Explicit and Global Styles

In this section, we will take a look at how to update the user interface for our WalkTrailInfoPage, to apply Explicit Styles to our XAML elements so that our control elements will take on each of the platform-specific styles that our app is running on.

Whenever you use Explicit Styles, these must be declared in your XAML pages using a ResourceDictionary, and unlike Global Styles, they must be added to the XAML page using one or more Style declarations.

A Style is made Explicit by giving its declaration an x:Key attribute, which provides it with a descriptive key in the ResourceDictionary. These will then need to be applied to specific visual elements by setting their Style

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required