-
Notifications
You must be signed in to change notification settings - Fork 521
/
Copy pathDisplayLayerViewState.xaml
47 lines (47 loc) · 2.21 KB
/
DisplayLayerViewState.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
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage x:Class="ArcGIS.Samples.DisplayLayerViewState.DisplayLayerViewState"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Maui;assembly=Esri.ArcGISRuntime.Maui">
<Grid Style="{DynamicResource EsriSampleContainer}">
<esriUI:MapView x:Name="MyMapView" Style="{DynamicResource EsriSampleGeoView}" />
<Border Style="{DynamicResource EsriSampleControlPanel}">
<Grid Grid.Row="1" RowDefinitions="auto,auto,auto,auto">
<Label Grid.Row="0"
Margin="5"
MaximumWidthRequest="200"
Text="Zoom in and out to observe changes in layer status." />
<Button x:Name="LoadButton"
Grid.Row="1"
Margin="5"
Clicked="LoadButton_Click"
Text="Load layer" />
<Grid Grid.Row="2"
Margin="5"
ColumnDefinitions="auto,auto"
ColumnSpacing="3">
<Label Grid.Column="0"
FontAttributes="Bold"
Text="Visible: "
VerticalOptions="Center" />
<Switch x:Name="VisibilityToggle"
Grid.Column="1"
HorizontalOptions="Start"
IsToggled="True"
Toggled="CheckBox_Checked"
VerticalOptions="Center" />
</Grid>
<Grid Grid.Row="3"
Margin="5"
ColumnDefinitions="auto, auto"
ColumnSpacing="3">
<Label Grid.Column="0"
FontAttributes="Bold"
HorizontalOptions="Start"
Text="Layer display status: " />
<Label x:Name="LayerStatusLabel" Grid.Column="1" />
</Grid>
</Grid>
</Border>
</Grid>
</ContentPage>