-
Notifications
You must be signed in to change notification settings - Fork 521
/
DisplayUtilityAssociations.xaml
31 lines (31 loc) · 1.39 KB
/
DisplayUtilityAssociations.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
<UserControl x:Class="ArcGIS.WinUI.Samples.DisplayUtilityAssociations.DisplayUtilityAssociations"
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>
<DataTemplate x:Key="AssociationLegendItemTemplate">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="30" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Image Width="25"
Height="25"
Source="{Binding Value}" />
<TextBlock Grid.Column="1" Text="{Binding Key}" />
</Grid>
</DataTemplate>
</UserControl.Resources>
<Grid>
<esriUI:MapView x:Name="MyMapView" NavigationCompleted="OnNavigationCompleted" />
<Border Style="{StaticResource BorderStyle}">
<StackPanel>
<TextBlock Margin="5" Text="Utility association types" />
<ListView x:Name="AssociationLegend"
Margin="5"
IsHitTestVisible="False"
ItemTemplate="{StaticResource AssociationLegendItemTemplate}" />
</StackPanel>
</Border>
</Grid>
</UserControl>