|
1 | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
2 |
| -<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" |
3 |
| - xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" |
4 |
| - xmlns:wits="http://what.is.this.sheet/schemas/controls" |
5 |
| - x:Class="MauiDrawer.Sample.MainPage"> |
| 2 | +<ContentPage |
| 3 | + x:Class="MauiDrawer.Sample.MainPage" |
| 4 | + xmlns="http://schemas.microsoft.com/dotnet/2021/maui" |
| 5 | + xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" |
| 6 | + xmlns:wits="http://what.is.this.sheet/schemas/controls" |
| 7 | + BackgroundColor="LightYellow"> |
| 8 | + |
| 9 | + <Grid |
| 10 | + Padding="8" |
| 11 | + ColumnDefinitions="*" |
| 12 | + IgnoreSafeArea="True" |
| 13 | + RowDefinitions="auto,auto,auto,auto,auto,*" |
| 14 | + RowSpacing="8"> |
6 | 15 |
|
7 |
| - <Grid ColumnDefinitions="*" RowDefinitions="auto,auto,auto,auto,auto,*" RowSpacing="8"> |
8 | 16 | <Button
|
9 |
| - Text="Tapped" TextColor="Blue" Clicked="Button_Clicked" |
10 |
| - VerticalOptions="Start" HorizontalOptions="Center" |
11 |
| - Grid.Row="0"/> |
| 17 | + Grid.Row="1" |
| 18 | + Clicked="Dismiss_Clicked" |
| 19 | + Text="Dismiss" /> |
12 | 20 |
|
13 |
| - <Button Text="Dismiss" Clicked="Dismiss_Clicked" |
14 |
| - Grid.Row="1" /> |
| 21 | + <Switch |
| 22 | + x:Name="HideOnDismiss" |
| 23 | + Grid.Row="2" |
| 24 | + Toggled="Switch_Toggled" /> |
15 | 25 |
|
16 |
| - <Switch x:Name="HideOnDismiss" Toggled="Switch_Toggled" |
17 |
| - Grid.Row="2" /> |
18 |
| - |
19 |
| - <Button Text="Show" Clicked="Show_Clicked" |
20 |
| - Grid.Row="3" /> |
| 26 | + <Button |
| 27 | + Grid.Row="3" |
| 28 | + Clicked="Show_Clicked" |
| 29 | + Text="Show" /> |
21 | 30 |
|
22 |
| - <Button Text="GetTapped" Clicked="GetTapped_Clicked" |
23 |
| - Grid.Row="4" /> |
| 31 | + <Button |
| 32 | + Grid.Row="4" |
| 33 | + Clicked="GetTapped_Clicked" |
| 34 | + Text="GetTapped" /> |
24 | 35 |
|
25 |
| - <wits:BottomSheet x:Name="MainBottomSheet" |
| 36 | + <wits:BottomSheet |
| 37 | + x:Name="MainBottomSheet" |
26 | 38 | Grid.Row="0"
|
27 |
| - Grid.RowSpan="6"> |
| 39 | + Grid.RowSpan="6" |
| 40 | + Margin="-8"> |
| 41 | + <wits:BottomSheet.SheetStops> |
| 42 | + <wits:SheetStop Measurement="Fixed" Value="20" /> |
| 43 | + <wits:SheetStop Measurement="Percentage" Value=".33" /> |
| 44 | + <wits:SheetStop Measurement="Percentage" Value="0.0" /> |
| 45 | + </wits:BottomSheet.SheetStops> |
28 | 46 | <StackLayout Padding="8" Spacing="8">
|
29 |
| - <Label Text="Let there be text..." HeightRequest="80" /> |
| 47 | + <Label HeightRequest="80" Text="Let there be text..." /> |
30 | 48 | <Image Source="dotnet_bot.png" />
|
31 | 49 | <Label Text="This is a picture of a car" />
|
32 |
| - <Button Text="Toggle Background Interaction" Clicked="ToggleBackgroundInteraction_Clicked" /> |
33 |
| - <Button x:Name="LockPosition" Text="Lock Position" Clicked="LockPosition_Clicked" /> |
| 50 | + <Button Clicked="ToggleBackgroundInteraction_Clicked" Text="Toggle Background Interaction" /> |
| 51 | + <Button |
| 52 | + x:Name="LockPosition" |
| 53 | + Clicked="LockPosition_Clicked" |
| 54 | + Text="Lock Position" /> |
34 | 55 | </StackLayout>
|
35 | 56 | </wits:BottomSheet>
|
36 | 57 | </Grid>
|
|
0 commit comments