This repository was archived by the owner on Apr 29, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
XAML/ResourceDictionaries/ResourceDictionaryDemo Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 22<Application xmlns =" http://xamarin.com/schemas/2014/forms"
33 xmlns : x =" http://schemas.microsoft.com/winfx/2009/xaml"
44 x : Class =" ResourceDictionaryDemo.App" >
5- <Application .Resources>
5+ <Application .Resources>
66
77 <Thickness x : Key =" PageMargin" >20</Thickness >
88
99 <!-- Colors -->
1010 <Color x : Key =" AppBackgroundColor" >AliceBlue</Color >
1111 <Color x : Key =" NavigationBarColor" >#1976D2</Color >
1212 <Color x : Key =" NavigationBarTextColor" >White</Color >
13- <Color x : Key =" NormalTextColor" >Black</Color >
13+ <Color x : Key =" NormalTextColor" >Black</Color >
1414
1515 <!-- Implicit styles -->
1616 <Style TargetType =" {x:Type NavigationPage}" >
1717 <Setter Property =" BarBackgroundColor"
1818 Value =" {StaticResource NavigationBarColor}" />
19- <Setter Property =" BarTextColor"
20- Value =" {StaticResource NavigationBarTextColor}" />
19+ <Setter Property =" BarTextColor"
20+ Value =" {StaticResource NavigationBarTextColor}" />
2121 </Style >
2222
2323 <Style TargetType =" {x:Type ContentPage}"
2626 Value =" {StaticResource AppBackgroundColor}" />
2727 </Style >
2828
29- </Application .Resources>
29+ </Application .Resources>
3030</Application >
Original file line number Diff line number Diff line change 33 xmlns : x =" http://schemas.microsoft.com/winfx/2009/xaml"
44 x : Class =" ResourceDictionaryDemo.ListDataPage"
55 Title =" List Data Page" >
6- <ContentPage .Resources>
6+ <ContentPage .Resources>
77 <ResourceDictionary Source =" MyResourceDictionary.xaml" />
88
99 <!-- Implicit style -->
1010 <Style TargetType =" {x:Type ListView}" >
1111 <Setter Property =" BackgroundColor"
1212 Value =" {StaticResource AppBackgroundColor}" />
1313 </Style >
14- </ContentPage .Resources>
14+ </ContentPage .Resources>
1515
16- <ListView x : Name =" listView"
16+ <ListView x : Name =" listView"
1717 Margin =" {StaticResource PageMargin}"
1818 ItemTemplate =" {StaticResource PersonDataTemplate}" />
1919</ContentPage >
You can’t perform that action at this time.
0 commit comments