-
Notifications
You must be signed in to change notification settings - Fork 520
/
ManageOperationalLayers.xaml
71 lines (71 loc) · 3.99 KB
/
ManageOperationalLayers.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<ContentPage x:Class="ArcGIS.Samples.ManageOperationalLayers.ManageOperationalLayers"
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"
xmlns:mapping="clr-namespace:Esri.ArcGISRuntime.Mapping;assembly=Esri.ArcGISRuntime"
xmlns:resources="clr-namespace:ArcGIS.Resources">
<ContentPage.Resources>
<Style x:Key="ButtonStyle" TargetType="Button">
<Style.Setters>
<Setter Property="Background" Value="Transparent" />
<Setter Property="FontFamily" Value="calcite-ui-icons-24" />
<Setter Property="BorderColor" Value="Transparent" />
<Setter Property="FontSize" Value="20" />
</Style.Setters>
</Style>
</ContentPage.Resources>
<Grid Style="{DynamicResource EsriSampleContainer}">
<esriUI:MapView x:Name="MyMapView" Style="{DynamicResource EsriSampleGeoView}" />
<Border Style="{DynamicResource EsriSampleControlPanel}">
<StackLayout>
<Label Text="Use the buttons to modify the draw order of the layers. Include and exclude operational layers from the map." />
<Label FontAttributes="Bold"
HorizontalTextAlignment="Center"
Text="Included" />
<CollectionView x:Name="IncludedListView" VerticalOptions="Start">
<CollectionView.ItemTemplate>
<DataTemplate>
<Grid ColumnDefinitions="auto,auto,auto,*">
<Button Clicked="MoveButton_OnClicked"
Style="{StaticResource ButtonStyle}"
Text="" />
<Button Grid.Column="1"
Clicked="PromoteButton_Clicked"
Style="{StaticResource ButtonStyle}"
Text=""
ToolTipProperties.Text="Promote layer" />
<Button Grid.Column="2"
Clicked="DemoteButton_Clicked"
Style="{StaticResource ButtonStyle}"
Text=""
ToolTipProperties.Text="Demote layer" />
<Label Grid.Column="3"
LineBreakMode="NoWrap"
Text="{Binding Name}"
VerticalTextAlignment="Center" />
</Grid>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
<Label FontAttributes="Bold"
HorizontalTextAlignment="Center"
Text="Excluded" />
<CollectionView x:Name="ExcludedListView" VerticalOptions="Start">
<CollectionView.ItemTemplate>
<DataTemplate>
<Grid ColumnDefinitions="auto,*">
<Button Clicked="MoveButton_OnClicked"
Style="{StaticResource ButtonStyle}"
Text="" />
<Label Grid.Column="1"
LineBreakMode="NoWrap"
Text="{Binding Name}"
VerticalTextAlignment="Center" />
</Grid>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
</StackLayout>
</Border>
</Grid>
</ContentPage>