ResourceDictionary
is used to define the XAML Resources which can be re-used more than once throughout the Xamarin.Forms application.
- XAML resources are the definition of objects which can be used more than once.
ResourceDictionary
allows all such resource objects declared at one place.
- Generally, we can define
Styles
, ControlTemplates
, DataTemplates
, Colors
and Converters
into the ResourceDictionary
.
- In XAML, these resources can be accessed using the
StaticResource
Markup Extension.
ResourceDictionary
can be declared at either Element
Level (inside specific Element
), Page Level (inside Page
) or Application Level (inside App.xaml).