diff --git a/Samples.sln b/Samples.sln index c894d61..0e2ea7b 100644 --- a/Samples.sln +++ b/Samples.sln @@ -47,6 +47,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ex_AddingFonts", "ch02_Desi EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ex_GlyphsFont", "ch02_DesigningViews\ex_GlyphsFont\ex_GlyphsFont.csproj", "{F417F2C0-EDA9-4B7A-B4FC-00764091B750}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ex_ResourceDictionary", "ch02_DesigningViews\ex_ResourceDictionary\ex_ResourceDictionary.csproj", "{A9C198AC-8002-41C9-A110-AC0C717A20EB}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ex_ResourcesLib", "ch02_DesigningViews\ex_ResourcesLib\ex_ResourcesLib.csproj", "{8A93902C-A8D6-4FDC-82ED-0E1C8815E46F}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -131,6 +135,14 @@ Global {F417F2C0-EDA9-4B7A-B4FC-00764091B750}.Debug|Any CPU.Build.0 = Debug|Any CPU {F417F2C0-EDA9-4B7A-B4FC-00764091B750}.Release|Any CPU.ActiveCfg = Release|Any CPU {F417F2C0-EDA9-4B7A-B4FC-00764091B750}.Release|Any CPU.Build.0 = Release|Any CPU + {A9C198AC-8002-41C9-A110-AC0C717A20EB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A9C198AC-8002-41C9-A110-AC0C717A20EB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A9C198AC-8002-41C9-A110-AC0C717A20EB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A9C198AC-8002-41C9-A110-AC0C717A20EB}.Release|Any CPU.Build.0 = Release|Any CPU + {8A93902C-A8D6-4FDC-82ED-0E1C8815E46F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8A93902C-A8D6-4FDC-82ED-0E1C8815E46F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8A93902C-A8D6-4FDC-82ED-0E1C8815E46F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8A93902C-A8D6-4FDC-82ED-0E1C8815E46F}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -154,5 +166,7 @@ Global {83D42923-CEFB-48EE-986B-95D584386837} = {1E07D063-F377-413B-B9A0-FB94AF14B1A9} {A9F7103F-9AAD-4A1F-9174-8568FEB3C1F0} = {1E07D063-F377-413B-B9A0-FB94AF14B1A9} {F417F2C0-EDA9-4B7A-B4FC-00764091B750} = {1E07D063-F377-413B-B9A0-FB94AF14B1A9} + {A9C198AC-8002-41C9-A110-AC0C717A20EB} = {1E07D063-F377-413B-B9A0-FB94AF14B1A9} + {8A93902C-A8D6-4FDC-82ED-0E1C8815E46F} = {1E07D063-F377-413B-B9A0-FB94AF14B1A9} EndGlobalSection EndGlobal diff --git a/ch02_DesigningViews/ex_ResourceDictionary/App.xaml b/ch02_DesigningViews/ex_ResourceDictionary/App.xaml new file mode 100644 index 0000000..9fb3518 --- /dev/null +++ b/ch02_DesigningViews/ex_ResourceDictionary/App.xaml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + diff --git a/ch02_DesigningViews/ex_ResourceDictionary/App.xaml.cs b/ch02_DesigningViews/ex_ResourceDictionary/App.xaml.cs new file mode 100644 index 0000000..9b05808 --- /dev/null +++ b/ch02_DesigningViews/ex_ResourceDictionary/App.xaml.cs @@ -0,0 +1,14 @@ +namespace ex_ResourceDictionary; + +public partial class App : Application +{ + public App() + { + InitializeComponent(); + } + + protected override Window CreateWindow(IActivationState? activationState) + { + return new Window(new AppShell()); + } +} \ No newline at end of file diff --git a/ch02_DesigningViews/ex_ResourceDictionary/AppShell.xaml b/ch02_DesigningViews/ex_ResourceDictionary/AppShell.xaml new file mode 100644 index 0000000..2d46bb0 --- /dev/null +++ b/ch02_DesigningViews/ex_ResourceDictionary/AppShell.xaml @@ -0,0 +1,15 @@ + + + + + + diff --git a/ch02_DesigningViews/ex_ResourceDictionary/AppShell.xaml.cs b/ch02_DesigningViews/ex_ResourceDictionary/AppShell.xaml.cs new file mode 100644 index 0000000..831a0fc --- /dev/null +++ b/ch02_DesigningViews/ex_ResourceDictionary/AppShell.xaml.cs @@ -0,0 +1,9 @@ +namespace ex_ResourceDictionary; + +public partial class AppShell : Shell +{ + public AppShell() + { + InitializeComponent(); + } +} diff --git a/ch02_DesigningViews/ex_ResourceDictionary/MainPage.xaml b/ch02_DesigningViews/ex_ResourceDictionary/MainPage.xaml new file mode 100644 index 0000000..c0ee5d5 --- /dev/null +++ b/ch02_DesigningViews/ex_ResourceDictionary/MainPage.xaml @@ -0,0 +1,28 @@ + + + + + + +