-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMainPage.xaml
executable file
·41 lines (33 loc) · 1.32 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
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:channels="clr-namespace:Microsoft.Maui.PlatformChannels.Controls;assembly=Microsoft.Maui.PlatformChannels"
x:Class="SamplePlatformChannels.MainPage"
BackgroundColor="{DynamicResource Secondary}">
<VerticalStackLayout Padding="20">
<Entry
x:Name="entryNumbers"
PlaceholderColor="{DynamicResource Gray400}"
Placeholder="Numbers to add..." />
<Button
Clicked="Button_Clicked"
Text="Add" />
<Label
Text="Result"
Style="{StaticResource Headline}" />
<Label
Text="0"
x:Name="labelResult"
Style="{StaticResource SubHeadline}" />
<Label
Text="Platform Views"
Style="{StaticResource Headline}"
Margin="0,20,0,0" />
<channels:PlatformChannelView
x:Name="labelViewChannel"
ChannelTypeId="labelView"
OnReceiveFromPlatform="PlatformChannelView_OnReceiveFromPlatform" />
<channels:PlatformChannelView
x:Name="labelViewChannel2"
ChannelTypeId="labelView" />
</VerticalStackLayout>
</ContentPage>