-
Notifications
You must be signed in to change notification settings - Fork 531
Expand file tree
/
Copy pathConfigureSceneEnvironment.xaml
More file actions
76 lines (74 loc) · 3.42 KB
/
ConfigureSceneEnvironment.xaml
File metadata and controls
76 lines (74 loc) · 3.42 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
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
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
x:Class="ArcGIS.Samples.ConfigureSceneEnvironment.ConfigureSceneEnvironment"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Maui;assembly=Esri.ArcGISRuntime.Maui">
<Grid>
<esriUI:LocalSceneView x:Name="MySceneView" />
<Border
Margin="10"
HorizontalOptions="{OnIdiom Phone=Fill,
Default=End}"
Style="{DynamicResource EsriSampleControlPanel}"
VerticalOptions="Start"
WidthRequest="{OnIdiom Phone=-1,
Default=300}">
<ScrollView>
<StackLayout Padding="5" Spacing="5">
<!-- Sky settings -->
<Label FontAttributes="Bold" Text="Sky" />
<Grid
ColumnDefinitions="*,auto"
ColumnSpacing="10"
RowDefinitions="auto,auto">
<Label Text="Stars" VerticalOptions="Center" />
<Switch x:Name="StarsSwitch" Grid.Column="1" />
<Label
Grid.Row="1"
Text="Atmosphere"
VerticalOptions="Center" />
<Switch
x:Name="AtmosphereSwitch"
Grid.Row="1"
Grid.Column="1" />
</Grid>
<BoxView HeightRequest="1" Color="Gray" />
<!-- Background color settings -->
<Label FontAttributes="Bold" Text="Background color" />
<Picker x:Name="BackgroundColorPicker" />
<BoxView HeightRequest="1" Color="Gray" />
<!-- Lighting settings -->
<Label FontAttributes="Bold" Text="Lighting" />
<HorizontalStackLayout Spacing="10">
<RadioButton
x:Name="SunRadioButton"
Content="Sun"
GroupName="LightingType" />
<RadioButton
x:Name="VirtualRadioButton"
Content="Virtual"
GroupName="LightingType" />
</HorizontalStackLayout>
<Grid ColumnDefinitions="*,auto" ColumnSpacing="10">
<Label Text="Direct Shadows" VerticalOptions="Center" />
<Switch x:Name="ShadowsSwitch" Grid.Column="1" />
</Grid>
<Grid ColumnDefinitions="auto,*" ColumnSpacing="5">
<Label
x:Name="HourLabel"
Grid.Column="0"
MinimumWidthRequest="75"
Text="Hour: 12:00"
VerticalTextAlignment="Center" />
<Slider
x:Name="HourSlider"
Grid.Column="1"
Maximum="23"
Minimum="0" />
</Grid>
</StackLayout>
</ScrollView>
</Border>
</Grid>
</ContentPage>