-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathAutoColumnDimensionView.xaml
More file actions
45 lines (43 loc) · 2.12 KB
/
AutoColumnDimensionView.xaml
File metadata and controls
45 lines (43 loc) · 2.12 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
<Window x:Class="Sonny.Application.Features.AutoColumnDimension.Views.AutoColumnDimensionView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:viewModel="clr-namespace:Sonny.Application.Features.AutoColumnDimension.ViewModels"
mc:Ignorable="d"
x:Name="ThisWindow"
Title="{DynamicResource WindowTitle}"
Height="200" Width="400"
WindowStartupLocation="CenterOwner"
d:DataContext="{d:DesignInstance {x:Type viewModel:AutoColumnDimensionViewModel}, IsDesignTimeCreatable=True}">
<StackPanel Margin="20">
<!-- Dimension Type Selection -->
<Grid Margin="0,0,0,10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="120" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Label Content="{DynamicResource LabelDimensionType}" Grid.Column="0" />
<ComboBox Grid.Column="1"
ItemsSource="{Binding DimensionTypes}"
SelectedItem="{Binding SelectedDimensionType}"
DisplayMemberPath="Name" />
</Grid>
<!-- Snap Distance Input -->
<Grid Margin="0,0,0,10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="120" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Label Content="{DynamicResource LabelSnapDistance}" Grid.Column="0" />
<TextBox Grid.Column="1"
Text="{Binding SnapDistanceDisplay, UpdateSourceTrigger=PropertyChanged}" />
<Label Content="{Binding DisplayUnitName}" Grid.Column="2" />
</Grid>
<!-- OK Button -->
<Button Content="{DynamicResource ButtonOK}"
Command="{Binding RunCommand}"
HorizontalAlignment="Right" />
</StackPanel>
</Window>