-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
183 lines (135 loc) · 10.7 KB
/
Copy pathMainWindow.xaml
File metadata and controls
183 lines (135 loc) · 10.7 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<Window x:Class="GigaPrime3D.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:GigaPrime3D"
xmlns:proEssentials="clr-namespace:Gigasoft.ProEssentials;assembly=Gigasoft.ProEssentialsWpf"
mc:Ignorable="d"
Title="MainWindow" Height="1000" Width="1799" MinWidth="400" MinHeight="400" Closing="Window_Closing" Name="Main" UseLayoutRounding="True" Loaded="Main_Loaded" WindowStartupLocation="CenterScreen" WindowState="Maximized" SizeChanged="Main_SizeChanged" >
<Window.Resources>
<Style x:Key="wBackColor" TargetType="{x:Type Grid}">
<Setter Property="Background" Value="#002B35"/>
</Style>
<Style x:Key="wForeColor" TargetType="{x:Type Control}">
<Setter Property="Foreground" Value="White"/>
</Style>
<Style x:Key="_ListBoxItemStyle" TargetType="ListBoxItem">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ListBoxItem">
<Border Name="_Border"
Padding="2"
SnapsToDevicePixels="true">
<ContentPresenter />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsSelected" Value="true">
<Setter TargetName="_Border" Property="Background" Value="#002B35"/>
<Setter Property="Foreground" Value="Yellow"/>
</Trigger>
<Trigger Property="IsSelected" Value="false">
<Setter TargetName="_Border" Property="Background" Value="#002B35"/>
<Setter Property="Foreground" Value="White"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Grid Style="{StaticResource wBackColor}" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="275"/>
<ColumnDefinition Width="4000*"/>
<ColumnDefinition Width="220"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="35" />
<RowDefinition Height="35" />
</Grid.RowDefinitions>
<Grid Grid.Column="0" Name="ColContainer" Grid.ColumnSpan="2">
<Border Grid.Column="0" Name="UIColContainer" BorderThickness="1" Visibility="Visible" >
<StackPanel Grid.ColumnSpan="1" Orientation="Vertical">
<ComboBox Name="HeightMaps" FontSize="15" Margin="1,6,0,15" MaxWidth="275" MinWidth="275" HorizontalAlignment="Left" VerticalAlignment="Top" Height="30" ItemContainerStyle="{DynamicResource _ListBoxItemStyle}" SelectionChanged="HeightMaps_SelectionChanged" ></ComboBox>
<CheckBox Name="ShowLegend" Style="{StaticResource wForeColor}" Height="22" Content="Legend" Checked="ShowLegend_Checked" Unchecked="ShowLegend_UnChecked" MaxWidth="130" MinWidth="130" HorizontalAlignment="Left" MinHeight="22" Margin="0,15,0,0" >
<CheckBox.LayoutTransform>
<ScaleTransform ScaleX="1.5" ScaleY="1.5" />
</CheckBox.LayoutTransform>
</CheckBox>
<CheckBox Name="BottomContour" Style="{StaticResource wForeColor}" Height="22" Content="Bottom Contour" Checked="ShowContour_Checked" Unchecked="ShowContour_UnChecked" MaxWidth="130" MinWidth="130" HorizontalAlignment="Left" MinHeight="22" Margin="0,0,0,0">
<CheckBox.LayoutTransform>
<ScaleTransform ScaleX="1.5" ScaleY="1.5" />
</CheckBox.LayoutTransform>
</CheckBox>
<CheckBox Name="ShowPlane" Style="{StaticResource wForeColor}" Height="22" Content="X Plane" Checked="ShowPlane_Checked" Unchecked="ShowPlane_UnChecked" MaxWidth="130" MinWidth="130" HorizontalAlignment="Left" MinHeight="22" Margin="0,0,0,20">
<CheckBox.LayoutTransform>
<ScaleTransform ScaleX="1.5" ScaleY="1.5" />
</CheckBox.LayoutTransform>
</CheckBox>
<CheckBox Name="HotSpots" Style="{StaticResource wForeColor}" Height="22" Content="Cursor Tracking" Checked="HotSpots_Checked" Unchecked="HotSpots_UnChecked" MaxWidth="130" MinWidth="130" HorizontalAlignment="Left" MinHeight="22" Margin="0,0,0,20">
<CheckBox.LayoutTransform>
<ScaleTransform ScaleX="1.5" ScaleY="1.5" />
</CheckBox.LayoutTransform>
</CheckBox>
<StackPanel Orientation="Horizontal" Margin="0,0,0,20" >
<Label Name="ReduceDataLabel" Style="{StaticResource wForeColor}" Height="25" Content="Reduce Data" MaxWidth="80" MinWidth="80" HorizontalAlignment="Left" MinHeight="25" Margin="0,0,0,1">
<Label.LayoutTransform> <ScaleTransform ScaleX="1.5" ScaleY="1.5" /> </Label.LayoutTransform>
</Label>
<ComboBox Name="ReduceDataAmount" Height="25" MinHeight="25" MaxWidth="60" MinWidth="60" HorizontalAlignment="Left" Margin="10,0,0,0" SelectionChanged="ReduceDataAmount_SelectionChanged" >
</ComboBox>
</StackPanel>
<Button Name="HelpButton" Style="{StaticResource wForeColor}" Background="#000000" Height="22" Content="Help ?" Click="HelpButton_Click" MaxWidth="60" MinWidth="60" HorizontalAlignment="Left" MinHeight="22" Margin="0,0,0,20" >
<Button.LayoutTransform>
<ScaleTransform ScaleX="1.5" ScaleY="1.5" />
</Button.LayoutTransform>
</Button>
<Label Content="Move Horizontally" Style="{StaticResource wForeColor}" />
<Slider Name="SliderHorizontalMove" MinWidth="250" MaxWidth="250" ValueChanged="SliderHorizontalMove_OnValueChanged" Minimum="-10" Maximum="10" Margin="5" HorizontalAlignment="Left" />
<Label Content="Move Vertically" Style="{StaticResource wForeColor}" />
<Slider Name="SliderVerticalMove" MinWidth="250" MaxWidth="250" ValueChanged="SliderVerticalMove_OnValueChanged" Minimum="-10" Maximum="10" Margin="5" HorizontalAlignment="Left" />
<Label Content="Rotate Light Horizontally" Style="{StaticResource wForeColor}" />
<Slider Name="SliderHorizontalLightRotation" MinWidth="250" MaxWidth="250" ValueChanged="SliderHorizontalLightRotation_OnValueChanged" Minimum="0" Maximum="360" Margin="5" HorizontalAlignment="Left" />
<Label Content="Rotate Light Vertically" Style="{StaticResource wForeColor}" />
<Slider Name="SliderVerticalLightRotation" MinWidth="250" MaxWidth="250" ValueChanged="SliderVerticalLightRotation_OnValueChanged" Minimum="0" Maximum="360" Margin="5" HorizontalAlignment="Left" />
</StackPanel>
</Border>
</Grid>
<Grid Grid.Row="0" Grid.Column="0" Name="Chart2DContourContainer" Grid.ZIndex="1" Grid.ColumnSpan="2" >
<proEssentials:PesgoWpf Name="Chart2DContour" Width="360" Height="360" MaxWidth="360" MaxHeight="360" HorizontalAlignment="Left" Margin="0,450,0,0" FocusVisualStyle="{x:Null}" />
</Grid>
<Grid Grid.Row="0" Grid.Column="1" Name="ChartContainer" Grid.ColumnSpan="2" >
<StackPanel Grid.ZIndex="2" Margin="0,30,0,0" >
<Label Content="Vertical rotation" Style="{StaticResource wForeColor}" />
<Slider Name="SliderVerticalRotation" MinWidth="250" MaxWidth="250" ValueChanged="SliderVerticalRotation_OnValueChanged" Minimum="-90" Maximum="90" Margin="5" HorizontalAlignment="Left" />
<Label Content="Horizontal rotation" Style="{StaticResource wForeColor}" />
<Slider Name="SliderHorizontalRotation" MinWidth="250" MaxWidth="250" ValueChanged="SliderHorizontalRotation_OnValueChanged" Minimum="0" Maximum="360" Margin="5" HorizontalAlignment="Left" />
<Label Content="Magnification / Distance" Style="{StaticResource wForeColor}" />
<Slider Name="SliderZoom" MinWidth="250" MaxWidth="250" ValueChanged="SliderZoom_OnValueChanged" Minimum="-50" Maximum="-5" Margin="5" HorizontalAlignment="Left" />
<Label Content="Explode Z Axis" Style="{StaticResource wForeColor}" />
<Slider Name="SliderZExaggeration" MinWidth="250" MaxWidth="250" ValueChanged="SliderZExaggeration_OnValueChanged" Minimum="1" Maximum="50" Value="10" Margin="5" HorizontalAlignment="Left" />
</StackPanel>
<Border Grid.Row="0" Name="PeContainer" BorderThickness="1" Visibility="Visible" >
<proEssentials:Pe3doWpf Name="Chart3DSurface"
PeHorzScroll="Chart_OnPeHorzScroll"
PeVertScroll="Chart_OnPeVertScroll"
PeZoomIn="Chart_OnPeZoomIn" />
</Border>
</Grid>
<Grid Grid.Row="0" Grid.Column="2" Name="Chart2DContainer" Grid.ColumnSpan="2" >
<Grid Grid.Row="0" Margin="0,40,5,5" >
<proEssentials:PesgoWpf Name="Chart2DLine" Margin="0,40,0,45" FocusVisualStyle="{x:Null}" />
<StackPanel Name="PanelXPlane" Grid.ZIndex="1" Margin="0,5,0,220" >
<Slider Name="SliderXPlane" Orientation="Horizontal" VerticalAlignment="Bottom" MinWidth="150" MaxWidth="150" MinHeight="20" MaxHeight="20" ValueChanged="SliderXPlane_OnValueChanged" Minimum="0" Maximum="100" Margin="5" HorizontalAlignment="Right" />
</StackPanel>
</Grid>
</Grid>
<Grid Grid.Row="1" Grid.ColumnSpan="2" >
<StackPanel Orientation="Horizontal">
</StackPanel>
</Grid>
<Grid Grid.Row="2" Name="ExtraContainer" Grid.ColumnSpan="2" >
</Grid>
</Grid>
</Window>