forked from Esri/arcgis-maps-sdk-dotnet-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDensifyAndGeneralize.xaml
40 lines (40 loc) · 1.92 KB
/
DensifyAndGeneralize.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
<UserControl
x:Class="ArcGISRuntime.UWP.Samples.DensifyAndGeneralize.DensifyAndGeneralize"
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">
<Grid>
<esriUI:MapView x:Name="MyMapView" />
<Border Style="{StaticResource BorderStyle}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBlock Grid.Row="0"
Text="Adjust the sliders to see the resulting generalized or densified polyline."
TextWrapping="Wrap"
FontWeight="SemiBold" />
<TextBlock Grid.Row="1"
Text="Max. Deviation (Generalize)" FontWeight="Bold" />
<Slider x:Name="DeviationSlider"
Value="10" Minimum="1" Maximum="250"
Grid.Row="2" Margin="5" />
<TextBlock Grid.Row="3"
Text="Max. Segment length (Densify)" FontWeight="Bold" />
<Slider x:Name="SegmentLengthSlider"
Grid.Row="4" Margin="5"
Value="100" Minimum="100" Maximum="500" />
<TextBlock x:Name="ResultLabel" Grid.Row="5"
Text="Adjust a slider to start"
TextWrapping="Wrap"
FontWeight="SemiBold"
Foreground="RoyalBlue" />
</Grid>
</Border>
</Grid>
</UserControl>