forked from Esri/arcgis-maps-sdk-dotnet-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAuthorMap.xaml
179 lines (177 loc) · 8.86 KB
/
AuthorMap.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<UserControl x:Class="ArcGISRuntime.UWP.Samples.AuthorMap.AuthorMap"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:esriUI="using:Esri.ArcGISRuntime.UI.Controls">
<UserControl.Resources>
<Style TargetType="TextBlock">
<Setter Property="FontWeight" Value="SemiBold" />
<Setter Property="HorizontalAlignment" Value="Center" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="Margin" Value="0,2.5,0,2.5" />
</Style>
<Style TargetType="TextBox">
<Setter Property="Margin" Value="0,2.5,0,2.5" />
<Setter Property="Padding" Value="2.5" />
<Setter Property="HorizontalAlignment" Value="Stretch" />
</Style>
<Style TargetType="Button">
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="Margin" Value="0,2.5,0,2.5" />
</Style>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition Width="300" />
</Grid.ColumnDefinitions>
<ScrollViewer Grid.Column="1"
Padding="5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBlock Text="Select a basemap" />
<ComboBox x:Name="BasemapListBox"
Grid.Row="1"
HorizontalAlignment="Stretch"
SelectionChanged="BasemapListView_SelectionChanged" />
<TextBlock Text="Choose layers"
Grid.Row="2" />
<ListBox x:Name="OperationalLayerListBox"
SelectionMode="Multiple"
Grid.Row="3"
SelectionChanged="LayerSelectionChanged">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Key}" />
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<TextBlock Text="Pan and zoom to set initial extent"
Grid.Row="4" Grid.Column="0" />
<Grid Grid.Row="5">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="X Min:"
Grid.Row="0" Grid.Column="0"
Margin="0,0,5,0" />
<TextBox x:Name="XMinTextBox"
Grid.Row="0" Grid.Column="1"
IsReadOnly="True" />
<TextBlock Text="Y Min:"
Grid.Row="1" Grid.Column="0"
Margin="0,0,5,0" />
<TextBox x:Name="YMinTextBox"
Grid.Row="1" Grid.Column="1"
IsReadOnly="True" />
<TextBlock Text="X Max:"
Grid.Row="2" Grid.Column="0"
Margin="0,0,5,0" />
<TextBox x:Name="XMaxTextBox"
Grid.Row="2" Grid.Column="1"
IsReadOnly="True" />
<TextBlock Text="Y Max:"
Grid.Row="3" Grid.Column="0"
Margin="0,0,5,0" />
<TextBox x:Name="YMaxTextBox"
Grid.Row="3" Grid.Column="1"
IsReadOnly="True" />
</Grid>
<Button Content="New map"
Grid.Row="6"
Click="ClearMapClicked" />
<Grid x:Name="SaveMapGrid"
Grid.Row="7"
Margin="10"
Visibility="Collapsed">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="Title:"
HorizontalAlignment="Right" Margin="0,0,5,0" />
<TextBox x:Name="TitleTextBox"
Grid.Row="0" Grid.Column="1"
Text="My Map" />
<TextBlock Text="Description:"
Grid.Row="1" Grid.Column="0"
HorizontalAlignment="Right" Margin="0,0,5,0" />
<TextBox x:Name="DescriptionTextBox"
Grid.Row="1" Grid.Column="1"
TextWrapping="Wrap"
Text="Authored and saved using ArcGIS Runtime SDK." />
<TextBlock Text="Tags:"
Grid.Row="2" Grid.Column="0"
HorizontalAlignment="Right" Margin="0,0,5,0" />
<TextBox x:Name="TagsTextBox"
Grid.Row="2" Grid.Column="1"
Text="ArcGIS Runtime, Sample" />
<Button Content="Save map to portal"
Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2"
IsEnabled="{Binding ElementName=MyMapView }"
Click="SaveMapClicked" />
<ProgressBar x:Name="SaveProgressBar"
Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2"
Height="15" Margin="10,0,10,0"
HorizontalAlignment="Stretch"
IsIndeterminate="True" Visibility="Collapsed" />
</Grid>
<Grid x:Name="OAuthSettingsGrid"
Grid.Row="7"
Visibility="Visible">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="Configure OAuth"
Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" />
<TextBlock Text="Client ID:"
Grid.Row="1" Grid.Column="0"
HorizontalAlignment="Right" Margin="0,0,5,0" />
<TextBox x:Name="ClientIdTextBox"
Grid.Row="1" Grid.Column="1"
HorizontalAlignment="Stretch" />
<TextBlock Text="Redirect URL:"
Grid.Row="2" Grid.Column="0"
HorizontalAlignment="Right" Margin="0,0,5,0" />
<TextBox x:Name="RedirectUrlTextBox"
Grid.Row="2" Grid.Column="1"
HorizontalAlignment="Stretch" />
<Button Content="Save OAuth Settings"
Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2"
Click="SaveOAuthSettingsClicked" />
</Grid>
</Grid>
</ScrollViewer>
<esriUI:MapView x:Name="MyMapView"
Grid.Column="0" />
</Grid>
</UserControl>