-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainPage.xaml
More file actions
36 lines (33 loc) · 1.55 KB
/
MainPage.xaml
File metadata and controls
36 lines (33 loc) · 1.55 KB
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
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
xmlns:local="clr-namespace:HybridWebViewIssue"
x:Class="HybridWebViewIssue.MainPage"
x:DataType="local:MainViewModel">
<Grid toolkit:StateContainer.CurrentState="{Binding CurrentState}">
<toolkit:StateContainer.StateViews>
<VerticalStackLayout toolkit:StateView.StateKey="Loading">
<ActivityIndicator IsRunning="True" />
<Label Text="Loading Content..." />
</VerticalStackLayout>
<Grid toolkit:StateView.StateKey="Success"
RowDefinitions="Auto, *"
RowSpacing="10">
<Border Grid.Row="0"
Stroke="Purple"
HeightRequest="200"
Padding="20">
<Label Text="This is a label inside a Border"
TextColor="Purple"
VerticalOptions="Center"
HorizontalOptions="Center" />
</Border>
<HybridWebView Grid.Row="1"
FlowDirection="LeftToRight"
Background="Green"
DefaultFile="test.html" />
</Grid>
</toolkit:StateContainer.StateViews>
</Grid>
</ContentPage>