-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCoordsExportWindow.xaml
More file actions
76 lines (76 loc) · 4.93 KB
/
CoordsExportWindow.xaml
File metadata and controls
76 lines (76 loc) · 4.93 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
<m:MetroWindow x:Class="Cube.CoordsExportWindow"
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:m="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
xmlns:s="clr-namespace:Sparta;assembly=WarpControls"
xmlns:local="clr-namespace:Cube"
mc:Ignorable="d"
Title="Export Coordinates" Height="140" Width="400" WindowStartupLocation="CenterOwner" BorderThickness="0.5" BorderBrush="{DynamicResource AccentColorBrush}">
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.AnimatedTabControl.xaml" />
</ResourceDictionary.MergedDictionaries>
<Color x:Key="HighlightDarkColor">#FFFFFFFF</Color>
<Color x:Key="HighlightLightColor">#FFFFFFFF</Color>
<Color x:Key="AccentDarkColor">#FFFFFFFF</Color>
<Color x:Key="AccentColor">#FF666666</Color>
<Color x:Key="AccentColor2">#FFFFFFFF</Color>
<Color x:Key="AccentColor3">#FFFFFFFF</Color>
<Color x:Key="AccentColor4">#FF000000</Color>
<Color x:Key="LinkColor">CornflowerBlue</Color>
<SolidColorBrush x:Key="BrandingBrush" Color="{DynamicResource LinkColor}" />
<SolidColorBrush x:Key="AccentColorBrush" Color="{DynamicResource AccentColor}" />
<Style TargetType="s:ValueSlider">
<Setter Property="Foreground" Value="Black" />
</Style>
<Style x:Key="HyperlinkLikeButton" TargetType="Button">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<ContentPresenter />
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="Foreground" Value="#0066cc" />
<Setter Property="Cursor" Value="Hand" />
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="true">
<Setter Property="Foreground" Value="#3399ff" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<ControlTemplate.Resources>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="TextDecorations" Value="Underline" />
</Style>
</ControlTemplate.Resources>
<ContentPresenter />
</ControlTemplate>
</Setter.Value>
</Setter>
</Trigger>
</Style.Triggers>
</Style>
</ResourceDictionary>
</Window.Resources>
<StackPanel Orientation="Vertical" HorizontalAlignment="Center" Margin="10">
<StackPanel Orientation="Horizontal">
<s:ValueSlider TextFormat="Exported coordiantes will match a {0}" Value="{Binding ExportVolumeWidth, Mode=TwoWay}" UpdateTrigger="PropertyChanged" MinValue="1" MaxValue="99999" StepSize="1" />
<s:ValueSlider TextFormat=" x {0}" Value="{Binding ExportVolumeHeight, Mode=TwoWay}" UpdateTrigger="PropertyChanged" MinValue="1" MaxValue="99999" StepSize="1" />
<s:ValueSlider TextFormat=" x {0} px volume." Value="{Binding ExportVolumeDepth, Mode=TwoWay}" UpdateTrigger="PropertyChanged" MinValue="1" MaxValue="99999" StepSize="1" />
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,10,0,0">
<CheckBox Content="Invert X" IsChecked="{Binding ExportInvertX, Mode=TwoWay}" />
<CheckBox Content="Invert Y" Margin="20,0,0,0" IsChecked="{Binding ExportInvertY, Mode=TwoWay}" />
<CheckBox Content="Invert Z" Margin="20,0,0,0" IsChecked="{Binding ExportInvertZ, Mode=TwoWay}" />
</StackPanel>
<Button Name="ButtonExportCoords" Content="Export" FontSize="14" Margin="0,10" Click="ButtonExportCoords_OnClick" />
</StackPanel>
</m:MetroWindow>