forked from Esri/arcgis-maps-sdk-dotnet-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangeSublayerVisibility.xaml
24 lines (24 loc) · 1.16 KB
/
ChangeSublayerVisibility.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
<UserControl x:Class="ArcGISRuntime.WPF.Samples.ChangeSublayerVisibility.ChangeSublayerVisibility"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013">
<Grid>
<esri:MapView x:Name="MyMapView" />
<Border Style="{StaticResource BorderStyle}">
<StackPanel>
<TextBlock Text="Select sublayers for display."
TextWrapping="Wrap" TextAlignment="Center" FontWeight="SemiBold"
Margin="0,0,0,5" />
<ListView x:Name="SublayerListView">
<ListView.ItemTemplate>
<DataTemplate DataType="esri:ArcGISSublayer">
<CheckBox Content="{Binding Name}"
IsChecked="{Binding IsVisible}"
Margin="5" />
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackPanel>
</Border>
</Grid>
</UserControl>