-
Notifications
You must be signed in to change notification settings - Fork 524
/
Copy pathSymbolsFromMobileStyle.xaml
121 lines (121 loc) · 5.9 KB
/
SymbolsFromMobileStyle.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage x:Class="ArcGIS.Samples.SymbolsFromMobileStyle.SymbolsFromMobileStyle"
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}">
<ScrollView>
<Grid x:Name="SelectSymbolGrid"
Grid.Row="0"
Padding="5"
ColumnDefinitions="*,*,*"
ColumnSpacing="5"
RowDefinitions="auto,80,80,auto,auto"
RowSpacing="5">
<Label Grid.Row="0"
Grid.Column="0"
HorizontalOptions="Center"
Text="Eyes"
VerticalOptions="Center" />
<ListView x:Name="EyesListView"
Grid.Row="1"
Grid.Column="0"
HorizontalOptions="Center"
HorizontalScrollBarVisibility="Never"
ItemSelected="SymbolLayerSelected"
VerticalOptions="Center">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell Height="15">
<Image Source="{Binding Path=ImageSrc}" />
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
<Label Grid.Row="0"
Grid.Column="1"
HorizontalOptions="Center"
Text="Mouth"
VerticalOptions="Center" />
<ListView x:Name="MouthListView"
Grid.Row="1"
Grid.Column="1"
HorizontalOptions="Center"
HorizontalScrollBarVisibility="Never"
ItemSelected="SymbolLayerSelected"
VerticalOptions="Center">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell Height="15">
<Image Source="{Binding Path=ImageSrc}" />
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
<Label Grid.Row="0"
Grid.Column="2"
HorizontalOptions="Center"
Text="Hat"
VerticalOptions="Center" />
<ListView x:Name="HatListView"
Grid.Row="1"
Grid.Column="2"
HorizontalOptions="Center"
HorizontalScrollBarVisibility="Never"
ItemSelected="SymbolLayerSelected"
VerticalOptions="Center">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell Height="15">
<Image Source="{Binding Path=ImageSrc}" />
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
<ListView x:Name="ColorListView"
Grid.Row="2"
Grid.Column="0"
Grid.ColumnSpan="3"
HorizontalOptions="Center"
ItemSelected="SymbolLayerSelected"
VerticalOptions="Center">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell Height="20">
<Label Text="{Binding Name}" />
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
<Grid Grid.Row="3"
Grid.Column="0"
Grid.ColumnSpan="3"
ColumnDefinitions="auto,*"
ColumnSpacing="5">
<Slider x:Name="SizeSlider"
Grid.Column="1"
HorizontalOptions="Center"
Maximum="60"
Minimum="8"
WidthRequest="150" />
<Label Grid.Column="0"
Text="{Binding Source={x:Reference SizeSlider}, Path=Value, StringFormat='Size: {0:0#}'}"
VerticalOptions="Center" />
</Grid>
<Image x:Name="SymbolPreviewImage"
Grid.Row="4"
Grid.Column="0"
Grid.ColumnSpan="2"
HeightRequest="40"
WidthRequest="40" />
<Button Grid.Row="4"
Grid.Column="2"
Clicked="ClearGraphicsButtonClicked"
Text="Clear" />
</Grid>
</ScrollView>
</Border>
</Grid>
</ContentPage>