Skip to content

Commit a197f10

Browse files
Update Sample App Popups
1 parent edb12ef commit a197f10

File tree

8 files changed

+12
-11
lines changed

8 files changed

+12
-11
lines changed

samples/CommunityToolkit.Maui.Sample/Views/Popups/ButtonPopup.xaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
xmlns:mct="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
77
BackgroundColor="Red">
88

9-
<VerticalStackLayout Style="{StaticResource PopupLayout}"
10-
Spacing="12">
9+
<VerticalStackLayout Spacing="12">
1110
<VerticalStackLayout.Resources>
1211
<ResourceDictionary>
1312
<Style x:Key="Title" TargetType="Label">

samples/CommunityToolkit.Maui.Sample/Views/Popups/MultipleButtonPopup.xaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
xmlns:system="clr-namespace:System;assembly=System.Runtime"
99
BackgroundColor="White">
1010

11-
<VerticalStackLayout Style="{StaticResource PopupLayout}"
12-
Spacing="12">
11+
<VerticalStackLayout>
1312
<VerticalStackLayout.Resources>
1413
<ResourceDictionary>
1514
<Style x:Key="Title" TargetType="Label">

samples/CommunityToolkit.Maui.Sample/Views/Popups/RedBlueBoxPopup.xaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
<mct:Popup xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
33
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
44
xmlns:mct="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
5-
x:Class="CommunityToolkit.Maui.Sample.Views.Popups.RedBlueBoxPopup">
6-
<Grid VerticalOptions="Fill" HorizontalOptions="Fill" BackgroundColor="Red" Style="{StaticResource PopupLayout}">
5+
x:Class="CommunityToolkit.Maui.Sample.Views.Popups.RedBlueBoxPopup"
6+
BackgroundColor="Transparent">
7+
<Grid VerticalOptions="Fill" HorizontalOptions="Fill" Style="{StaticResource PopupLayout}" BackgroundColor="Red">
78
<Grid WidthRequest="10" HeightRequest="10" VerticalOptions="Start" HorizontalOptions="Start" BackgroundColor="Blue" />
89
<Grid WidthRequest="10" HeightRequest="10" VerticalOptions="Start" HorizontalOptions="End" BackgroundColor="Blue" />
910
<Grid WidthRequest="10" HeightRequest="10" VerticalOptions="End" HorizontalOptions="Start" BackgroundColor="Blue" />

samples/CommunityToolkit.Maui.Sample/Views/Popups/ReturnResultPopup.xaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
xmlns:system="clr-namespace:System;assembly=System.Runtime"
77
BackgroundColor="White">
88

9-
<VerticalStackLayout Style="{StaticResource PopupLayout}"
10-
Spacing="12">
9+
<VerticalStackLayout Spacing="12">
1110
<VerticalStackLayout.Resources>
1211
<ResourceDictionary>
1312
<Style x:Key="Title" TargetType="Label">

samples/CommunityToolkit.Maui.Sample/Views/Popups/SimplePopup.xaml

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
55
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
66
xmlns:mct="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
7+
HorizontalOptions="Center"
8+
VerticalOptions="Center"
79
BackgroundColor="MediumPurple">
810

911
<VerticalStackLayout Style="{StaticResource PopupLayout}">

samples/CommunityToolkit.Maui.Sample/Views/Popups/ToggleSizePopup.xaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
xmlns:mct="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
77
BackgroundColor="White">
88

9-
<VerticalStackLayout Style="{StaticResource PopupLayout}"
10-
Spacing="12">
9+
<VerticalStackLayout Spacing="12">
1110

1211
<VerticalStackLayout.Resources>
1312
<ResourceDictionary>

samples/CommunityToolkit.Maui.Sample/Views/Popups/UpdatingPopup.xaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
xmlns:viewModels="clr-namespace:CommunityToolkit.Maui.Sample.ViewModels.Views"
99
x:DataType="viewModels:UpdatingPopupViewModel">
1010

11-
<VerticalStackLayout Style="{StaticResource PopupLayout}" Spacing="12" MinimumHeightRequest="350">
11+
<VerticalStackLayout Spacing="12" MinimumHeightRequest="350">
1212
<VerticalStackLayout.Resources>
1313
<ResourceDictionary>
1414
<Style x:Key="Title" TargetType="Label">

samples/CommunityToolkit.Maui.Sample/Views/Popups/XamlBindingPopup.xaml

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
xmlns:mct="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
66
xmlns:vm="clr-namespace:CommunityToolkit.Maui.Sample.ViewModels.Views"
77
x:DataType="vm:XamlBindingPopupViewModel"
8+
HorizontalOptions="Center"
9+
VerticalOptions="Center"
810
BackgroundColor="White">
911

1012
<ContentView.BindingContext>

0 commit comments

Comments
 (0)