forked from Esri/arcgis-maps-sdk-dotnet-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangeBlendRenderer.xaml
72 lines (72 loc) · 3.55 KB
/
ChangeBlendRenderer.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
<UserControl x:Class="ArcGISRuntime.UWP.Samples.ChangeBlendRenderer.ChangeBlendRenderer"
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="VerticalAlignment" Value="Center" />
<Setter Property="HorizontalAlignment" Value="Right" />
</Style>
<Style TargetType="TextBox">
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="Margin" Value="0,5,0,0" />
</Style>
<Style TargetType="Slider">
<Setter Property="Padding" Value="0,0,0,0" />
<Setter Property="Margin" Value="5,0,0,-8" />
<Setter Property="HorizontalAlignment" Value="Stretch" />
</Style>
<Style TargetType="ComboBox">
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="Margin" Value="5,5,0,0" />
</Style>
</UserControl.Resources>
<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>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock
Text="Tap 'Update renderer' to change the settings for the blend renderer. If you use None as the ColorRamp, a standard hill shade raster output is displayed. For all the other ColorRamp types an elevation raster is used."
Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"
Margin="0,0,0,10"
TextWrapping="Wrap" HorizontalAlignment="Stretch" />
<TextBlock Text="Altitude: "
Grid.Row="1" Grid.Column="0" />
<Slider x:Name="AltitudeSlider"
Grid.Row="1" Grid.Column="1" />
<TextBlock Text="Azimuth:"
Grid.Row="2" Grid.Column="0" />
<Slider x:Name="AzimuthSlider"
Grid.Row="2" Grid.Column="1" />
<TextBlock Text="Slope type:"
Grid.Row="3" Grid.Column="0" />
<ComboBox x:Name="SlopeTypes"
Grid.Row="3" Grid.Column="1" />
<TextBlock Text="Color ramp:"
Grid.Row="4" Grid.Column="0" />
<ComboBox x:Name="ColorRamps"
Grid.Row="4" Grid.Column="1" />
<Button x:Name="UpdateRenderer"
Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2"
Content="Update renderer"
Margin="0,5,0,0"
IsEnabled="False"
HorizontalAlignment="Stretch"
Click="OnUpdateRendererClicked" />
</Grid>
</Border>
</Grid>
</UserControl>