-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModelPreviewWindow.xaml
More file actions
50 lines (49 loc) · 2.06 KB
/
ModelPreviewWindow.xaml
File metadata and controls
50 lines (49 loc) · 2.06 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
<Window x:Class="CFRezManager.ModelPreviewWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Model Preview"
Width="980"
Height="720"
MinWidth="520"
MinHeight="360"
WindowStartupLocation="CenterOwner"
ShowInTaskbar="False"
Background="#111827">
<DockPanel Background="#111827">
<Border DockPanel.Dock="Top"
Background="#1F2937"
BorderBrush="#374151"
BorderThickness="0,0,0,1"
Padding="12,7">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBlock x:Name="PreviewInfoText"
Foreground="#E5E7EB"
FontSize="12"
FontWeight="SemiBold"
TextTrimming="CharacterEllipsis"
VerticalAlignment="Center"
Margin="0,0,12,0"/>
<Button x:Name="ResetViewButton"
Grid.Column="1"
Content="Reset"
Click="ResetViewButton_Click"
Padding="10,3"/>
</Grid>
</Border>
<Viewport3D x:Name="ModelViewport"
ClipToBounds="True"
Focusable="True"
KeyDown="ModelViewport_KeyDown"
KeyUp="ModelViewport_KeyUp"
LostKeyboardFocus="ModelViewport_LostKeyboardFocus"
LostMouseCapture="ModelViewport_LostMouseCapture"
MouseLeftButtonDown="ModelViewport_MouseLeftButtonDown"
MouseRightButtonDown="ModelViewport_MouseRightButtonDown"
MouseMove="ModelViewport_MouseMove"
MouseWheel="ModelViewport_MouseWheel"/>
</DockPanel>
</Window>