diff --git a/Samples.sln b/Samples.sln index 2f3cbeb..f1678e3 100644 --- a/Samples.sln +++ b/Samples.sln @@ -17,6 +17,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ex_ShadowLabel", "ch02_Desi EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ex_OutlineText", "ch02_DesigningViews\ex_OutlineText\ex_OutlineText.csproj", "{EAD02985-9DBA-459D-B12E-32A89D2C95C5}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ex_Toolbar", "ch02_DesigningViews\ex_Toolbar\ex_Toolbar.csproj", "{0D77C4EE-DD5C-4DCB-8FCB-F3548BDD398C}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -43,6 +45,10 @@ Global {EAD02985-9DBA-459D-B12E-32A89D2C95C5}.Debug|Any CPU.Build.0 = Debug|Any CPU {EAD02985-9DBA-459D-B12E-32A89D2C95C5}.Release|Any CPU.ActiveCfg = Release|Any CPU {EAD02985-9DBA-459D-B12E-32A89D2C95C5}.Release|Any CPU.Build.0 = Release|Any CPU + {0D77C4EE-DD5C-4DCB-8FCB-F3548BDD398C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0D77C4EE-DD5C-4DCB-8FCB-F3548BDD398C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0D77C4EE-DD5C-4DCB-8FCB-F3548BDD398C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0D77C4EE-DD5C-4DCB-8FCB-F3548BDD398C}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -53,5 +59,6 @@ Global {C93C6EF6-C535-44C0-B5BF-0DD4988F3FA4} = {E9273679-4D52-465F-8C23-8096DD8C2A7B} {62F4D4C2-7C79-4090-BB4B-20F848322113} = {1E07D063-F377-413B-B9A0-FB94AF14B1A9} {EAD02985-9DBA-459D-B12E-32A89D2C95C5} = {1E07D063-F377-413B-B9A0-FB94AF14B1A9} + {0D77C4EE-DD5C-4DCB-8FCB-F3548BDD398C} = {1E07D063-F377-413B-B9A0-FB94AF14B1A9} EndGlobalSection EndGlobal diff --git a/ch02_DesigningViews/ex_Toolbar/App.xaml b/ch02_DesigningViews/ex_Toolbar/App.xaml new file mode 100644 index 0000000..07afafd --- /dev/null +++ b/ch02_DesigningViews/ex_Toolbar/App.xaml @@ -0,0 +1,14 @@ + + + + + + + + + + + diff --git a/ch02_DesigningViews/ex_Toolbar/App.xaml.cs b/ch02_DesigningViews/ex_Toolbar/App.xaml.cs new file mode 100644 index 0000000..764e1f5 --- /dev/null +++ b/ch02_DesigningViews/ex_Toolbar/App.xaml.cs @@ -0,0 +1,11 @@ +namespace ex_Toolbar; + +public partial class App : Application +{ + public App() + { + InitializeComponent(); + + MainPage = new AppShell(); + } +} diff --git a/ch02_DesigningViews/ex_Toolbar/AppShell.xaml b/ch02_DesigningViews/ex_Toolbar/AppShell.xaml new file mode 100644 index 0000000..8aa41a4 --- /dev/null +++ b/ch02_DesigningViews/ex_Toolbar/AppShell.xaml @@ -0,0 +1,15 @@ + + + + + + diff --git a/ch02_DesigningViews/ex_Toolbar/AppShell.xaml.cs b/ch02_DesigningViews/ex_Toolbar/AppShell.xaml.cs new file mode 100644 index 0000000..a6c8b01 --- /dev/null +++ b/ch02_DesigningViews/ex_Toolbar/AppShell.xaml.cs @@ -0,0 +1,9 @@ +namespace ex_Toolbar; + +public partial class AppShell : Shell +{ + public AppShell() + { + InitializeComponent(); + } +} diff --git a/ch02_DesigningViews/ex_Toolbar/MainPage.xaml b/ch02_DesigningViews/ex_Toolbar/MainPage.xaml new file mode 100644 index 0000000..d722d69 --- /dev/null +++ b/ch02_DesigningViews/ex_Toolbar/MainPage.xaml @@ -0,0 +1,53 @@ + + + + + + + + + + + + + +