-
Notifications
You must be signed in to change notification settings - Fork 524
/
Copy pathDisplayGrid.xaml
112 lines (112 loc) · 5.03 KB
/
DisplayGrid.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
<UserControl x:Class="ArcGIS.WinUI.Samples.DisplayGrid.DisplayGrid"
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="ComboBox">
<Setter Property="Margin" Value="5" />
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="VerticalAlignment" Value="Center" />
</Style>
<Style TargetType="Button">
<Setter Property="Margin" Value="0,5,5,0" />
<Setter Property="HorizontalAlignment" Value="Stretch" />
</Style>
<Style TargetType="TextBlock">
<Setter Property="VerticalAlignment" Value="Center" />
</Style>
</UserControl.Resources>
<Grid>
<esriUI:MapView x:Name="MyMapView" />
<esriUI:SceneView x:Name="MySceneView" Visibility="Collapsed" />
<Border Width="450"
Margin="30"
Padding="20"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Background="White"
BorderBrush="Black"
BorderThickness="1">
<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" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="2*" />
</Grid.ColumnDefinitions>
<!-- TextBlocks -->
<TextBlock Grid.Row="0" Text="GeoView" />
<TextBlock Grid.Row="1" Text="Grid type" />
<TextBlock Grid.Row="2" Text="Show labels" />
<TextBlock Grid.Row="3" Text="Show grid" />
<TextBlock Grid.Row="4" Text="Grid color" />
<TextBlock Grid.Row="5" Text="Label color" />
<TextBlock Grid.Row="6" Text="Halo color" />
<TextBlock Grid.Row="7" Text="Label position" />
<TextBlock Grid.Row="8" Text="Label format" />
<TextBlock Grid.Row="9" Text="Label offset" />
<!-- Inputs -->
<StackPanel Grid.Row="0"
Grid.Column="1"
Orientation="Horizontal">
<RadioButton x:Name="mapViewRadioButton"
Content="MapView"
GroupName="GeoViewRadioButtons"
IsChecked="True" />
<RadioButton Content="SceneView" GroupName="GeoViewRadioButtons" />
</StackPanel>
<ComboBox x:Name="gridTypeCombo"
Grid.Row="1"
Grid.Column="1" />
<CheckBox x:Name="labelVisibilityCheckbox"
Grid.Row="2"
Grid.Column="1"
Margin="5,0,0,0"
IsChecked="True" />
<CheckBox x:Name="gridVisibilityCheckbox"
Grid.Row="3"
Grid.Column="1"
Margin="5,0,0,0"
IsChecked="True" />
<ComboBox x:Name="gridColorCombo"
Grid.Row="4"
Grid.Column="1" />
<ComboBox x:Name="labelColorCombo"
Grid.Row="5"
Grid.Column="1" />
<ComboBox x:Name="haloColorCombo"
Grid.Row="6"
Grid.Column="1" />
<ComboBox x:Name="labelPositionCombo"
Grid.Row="7"
Grid.Column="1" />
<ComboBox x:Name="labelFormatCombo"
Grid.Row="8"
Grid.Column="1" />
<Slider x:Name="labelOffsetSlider"
Grid.Row="9"
Grid.Column="1"
Maximum="150"
Minimum="0"
Value="40" />
<!-- Apply -->
<Button x:Name="applySettingsButton"
Grid.Row="10"
Grid.ColumnSpan="2"
Content="Apply settings"
IsEnabled="False" />
</Grid>
</Border>
</Grid>
</UserControl>