Jump to: navigation, search

Changes


Xamarin XAML

16 bytes added, 07:23, 4 July 2019
<code>[App Installation Path]/LocalState/xaml/</code> (on Windows)
A list of predefined pages templates (all starting with UBIK) can be overwritten. The overrides will be loaded during the startup of the app.
=== Important ===
== UBIKThemes.xamlx ==
One of the most significant files is the ''UBIKThemes.xamlx'', as it is the place to override and extend '''global definitions'''. Definitions and changes made here will reflect over all pages templates and subpages subtemplates of the app.
== Overriding Styles ==
Similar to the ''UBIKThemes.xamlx'' file, custom or overridden templates start with a <code><ContentView></code> tag containing all '''namespaces'''. <code><ContentView.Resources></code> takes a '''ResourceDictionary''' and contains resources like references to converters. Finally, <code><ContentView.Content></code> contains the actual layout content (it's best to start with a '''Grid'''). Again, don't forget to add namespaces that you need!
Templates can also be defined in ''UBIKThemes.xamlx''. In this case, they need to be added into the <code><ResourceDictionary></code> inside the <code><ContentView.Resources></code> page template as a <code><DataTemplate></code>. Similarly, if you want to split up the templates into seperate files, you need to make sure to follow the steps mentioned above and get the content of the <code><DataTemplate></code> into the <code><ContentView.Content></code> tag.
=== Adding Images ===
187
edits