-
Notifications
You must be signed in to change notification settings - Fork 521
/
ControlAnnotationSublayerVisibility.xaml
42 lines (42 loc) · 1.9 KB
/
ControlAnnotationSublayerVisibility.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
<ContentPage x:Class="ArcGIS.Samples.ControlAnnotationSublayerVisibility.ControlAnnotationSublayerVisibility"
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 Padding="5"
ColumnDefinitions="auto,auto"
RowDefinitions="auto,auto,auto">
<Switch x:Name="OpenSwitch"
Grid.Row="0"
Grid.Column="1"
Margin="5"
IsEnabled="False"
IsToggled="True"
Toggled="OpenSwitchChanged" />
<Label x:Name="OpenLabel"
Grid.Row="0"
Grid.Column="0"
Text="Open"
VerticalTextAlignment="Center" />
<Switch x:Name="ClosedSwitch"
Grid.Row="1"
Grid.Column="1"
Margin="5"
IsEnabled="False"
IsToggled="True"
Toggled="ClosedSwitchChanged" />
<Label x:Name="ClosedLabel"
Grid.Row="1"
Grid.Column="0"
Text="Closed"
VerticalTextAlignment="Center" />
<Label x:Name="ScaleLabel"
Grid.Row="2"
Grid.ColumnSpan="2"
Text="Current map scale: 1:" />
</Grid>
</Border>
</Grid>
</ContentPage>