-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMainPage.xaml
58 lines (48 loc) · 2.14 KB
/
MainPage.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
x:Class="MauiAppDataWedgeSample.MainPage"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:mct="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
xmlns:viewmodel="clr-namespace:MauiAppDataWedgeSample.ViewModels"
x:DataType="viewmodel:MainViewModel">
<ScrollView>
<VerticalStackLayout
Padding="30,0"
Spacing="25"
VerticalOptions="Center">
<Image
HeightRequest="200"
HorizontalOptions="Center"
SemanticProperties.Description="Cute dot net bot waving hi to you!"
Source="dotnet_bot.png" />
<Label
FontSize="32"
HorizontalOptions="Center"
SemanticProperties.HeadingLevel="Level1"
Text="Hello, World!" />
<Label
FontSize="18"
HorizontalOptions="Center"
SemanticProperties.Description="Welcome to dot net Multi platform App U I"
SemanticProperties.HeadingLevel="Level2"
Text="{Binding Barcode, StringFormat='Barcode = {0}'}" />
<HorizontalStackLayout>
<Button
Command="{Binding CopyProfileToDeviceCommand}"
HorizontalOptions="Center"
SemanticProperties.Hint="Counts the number of times you click"
Text="Copy profile to device" />
<ActivityIndicator
Margin="10,0,10,0"
IsRunning="{Binding IsCopying}"
IsVisible="{Binding IsCopying}" />
<Switch IsToggled="{Binding IsDataWedgeEnabled}" />
</HorizontalStackLayout>
</VerticalStackLayout>
</ScrollView>
<ContentPage.Behaviors>
<mct:EventToCommandBehavior Command="{Binding AppearingCommand}" EventName="Appearing" />
<mct:EventToCommandBehavior Command="{Binding DisappearingCommand}" EventName="Disappearing" />
</ContentPage.Behaviors>
</ContentPage>