diff --git a/ch02_DesigningViews/ex_CustomToolbar/MainPage.xaml b/ch02_DesigningViews/ex_CustomToolbar/MainPage.xaml index 9ed0cd6..5735a90 100644 --- a/ch02_DesigningViews/ex_CustomToolbar/MainPage.xaml +++ b/ch02_DesigningViews/ex_CustomToolbar/MainPage.xaml @@ -4,6 +4,12 @@ xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" x:Class="ex_CustomToolbar.MainPage"> + + + + @@ -33,8 +39,9 @@ - - + - - + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ch02_DesigningViews/ex_CustomToolbar/MainPage.xaml.cs b/ch02_DesigningViews/ex_CustomToolbar/MainPage.xaml.cs index fa66492..1e57fe2 100644 --- a/ch02_DesigningViews/ex_CustomToolbar/MainPage.xaml.cs +++ b/ch02_DesigningViews/ex_CustomToolbar/MainPage.xaml.cs @@ -25,5 +25,13 @@ public partial class MainPage : ContentPage { test.IsVisible = !test.IsVisible; } + + private void BackgroundClicked(object sender, TappedEventArgs e) + { + if(test.IsVisible) + { + test.IsVisible = false; + } + } } diff --git a/ch02_DesigningViews/ex_CustomToolbar/Platforms/iOS/Info.plist b/ch02_DesigningViews/ex_CustomToolbar/Platforms/iOS/Info.plist index 358337b..6a304ad 100644 --- a/ch02_DesigningViews/ex_CustomToolbar/Platforms/iOS/Info.plist +++ b/ch02_DesigningViews/ex_CustomToolbar/Platforms/iOS/Info.plist @@ -28,5 +28,7 @@ XSAppIconAssets Assets.xcassets/appicon.appiconset + UIViewControllerBasedStatusBarAppearance + diff --git a/ch02_DesigningViews/ex_CustomToolbar/Resources/Images/captions_bubble.png b/ch02_DesigningViews/ex_CustomToolbar/Resources/Images/captions_bubble.png new file mode 100644 index 0000000..7c0b4b6 Binary files /dev/null and b/ch02_DesigningViews/ex_CustomToolbar/Resources/Images/captions_bubble.png differ diff --git a/ch02_DesigningViews/ex_CustomToolbar/Resources/Images/quote_bubble.png b/ch02_DesigningViews/ex_CustomToolbar/Resources/Images/quote_bubble.png new file mode 100644 index 0000000..24ec5b1 Binary files /dev/null and b/ch02_DesigningViews/ex_CustomToolbar/Resources/Images/quote_bubble.png differ