-
Notifications
You must be signed in to change notification settings - Fork 531
Expand file tree
/
Copy pathCreateDynamicBasemapGallery.xaml
More file actions
49 lines (49 loc) · 2.61 KB
/
CreateDynamicBasemapGallery.xaml
File metadata and controls
49 lines (49 loc) · 2.61 KB
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
<UserControl x:Class="ArcGIS.WinUI.Samples.CreateDynamicBasemapGallery.CreateDynamicBasemapGallery"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:esri="using:Esri.ArcGISRuntime"
xmlns:esriUI="using:Esri.ArcGISRuntime.UI"
xmlns:esriControls="using:Esri.ArcGISRuntime.UI.Controls"
xmlns:mapping="using:Esri.ArcGISRuntime.Mapping">
<Grid>
<esriControls:MapView x:Name="MyMapView" />
<Border Style="{StaticResource BorderStyle}">
<StackPanel>
<StackPanel Margin="5" Spacing="5">
<ListView x:Name="BasemapStyleGallery"
MaxHeight="500"
SelectionMode="Single">
<ListView.ItemTemplate>
<DataTemplate x:DataType="mapping:BasemapStyleInfo">
<StackPanel Margin="5">
<TextBlock FontWeight="Bold" Text="{Binding StyleName}" />
<Image Height="150"
HorizontalAlignment="Left"
Source="{x:Bind esriUI:RuntimeImageExtensions.ToImageSource(Thumbnail)}" />
</StackPanel>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
<TextBlock FontWeight="Bold" Text="Language strategy:" />
<ComboBox x:Name="StrategyPicker"
HorizontalAlignment="Stretch"
IsEnabled="False" />
<TextBlock FontWeight="Bold" Text="Language:" />
<ComboBox x:Name="LanguagePicker"
HorizontalAlignment="Stretch"
DisplayMemberPath="DisplayName"
IsEnabled="False" />
<TextBlock FontWeight="Bold" Text="Worldview:" />
<ComboBox x:Name="WorldviewPicker"
HorizontalAlignment="Stretch"
DisplayMemberPath="DisplayName"
IsEnabled="False" />
<Button Margin="0,10,0,0"
HorizontalAlignment="Stretch"
Click="LoadButton_Click"
Content="Load" />
</StackPanel>
</StackPanel>
</Border>
</Grid>
</UserControl>