diff --git a/Samples.sln b/Samples.sln index b5e1c34..b7b208e 100644 --- a/Samples.sln +++ b/Samples.sln @@ -19,6 +19,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ex_OutlineText", "ch02_Desi EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ex_Toolbar", "ch02_DesigningViews\ex_Toolbar\ex_Toolbar.csproj", "{0D77C4EE-DD5C-4DCB-8FCB-F3548BDD398C}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ex_CustomToolbar", "ch02_DesigningViews\ex_CustomToolbar\ex_CustomToolbar.csproj", "{5E1D0DEE-CD68-4AAD-9597-9BFF30C8214C}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -54,6 +56,11 @@ Global {0D77C4EE-DD5C-4DCB-8FCB-F3548BDD398C}.Debug|Any CPU.Deploy.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 + {5E1D0DEE-CD68-4AAD-9597-9BFF30C8214C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5E1D0DEE-CD68-4AAD-9597-9BFF30C8214C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5E1D0DEE-CD68-4AAD-9597-9BFF30C8214C}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {5E1D0DEE-CD68-4AAD-9597-9BFF30C8214C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5E1D0DEE-CD68-4AAD-9597-9BFF30C8214C}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -65,5 +72,6 @@ Global {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} + {5E1D0DEE-CD68-4AAD-9597-9BFF30C8214C} = {1E07D063-F377-413B-B9A0-FB94AF14B1A9} EndGlobalSection EndGlobal diff --git a/ch02_DesigningViews/ex_CustomToolbar/App.xaml b/ch02_DesigningViews/ex_CustomToolbar/App.xaml new file mode 100644 index 0000000..4eaeefe --- /dev/null +++ b/ch02_DesigningViews/ex_CustomToolbar/App.xaml @@ -0,0 +1,14 @@ + + + + + + + + + + + diff --git a/ch02_DesigningViews/ex_CustomToolbar/App.xaml.cs b/ch02_DesigningViews/ex_CustomToolbar/App.xaml.cs new file mode 100644 index 0000000..48718f8 --- /dev/null +++ b/ch02_DesigningViews/ex_CustomToolbar/App.xaml.cs @@ -0,0 +1,11 @@ +namespace ex_CustomToolbar; + +public partial class App : Application +{ + public App() + { + InitializeComponent(); + + MainPage = new AppShell(); + } +} diff --git a/ch02_DesigningViews/ex_CustomToolbar/AppShell.xaml b/ch02_DesigningViews/ex_CustomToolbar/AppShell.xaml new file mode 100644 index 0000000..1cfb84a --- /dev/null +++ b/ch02_DesigningViews/ex_CustomToolbar/AppShell.xaml @@ -0,0 +1,46 @@ + + + + + + + + diff --git a/ch02_DesigningViews/ex_CustomToolbar/AppShell.xaml.cs b/ch02_DesigningViews/ex_CustomToolbar/AppShell.xaml.cs new file mode 100644 index 0000000..f2777b7 --- /dev/null +++ b/ch02_DesigningViews/ex_CustomToolbar/AppShell.xaml.cs @@ -0,0 +1,9 @@ +namespace ex_CustomToolbar; + +public partial class AppShell : Shell +{ + public AppShell() + { + InitializeComponent(); + } +} diff --git a/ch02_DesigningViews/ex_CustomToolbar/MainPage.xaml b/ch02_DesigningViews/ex_CustomToolbar/MainPage.xaml new file mode 100644 index 0000000..15f1b38 --- /dev/null +++ b/ch02_DesigningViews/ex_CustomToolbar/MainPage.xaml @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + + + + +