|
4 | 4 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
5 | 5 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
6 | 6 | xmlns:Validator="clr-namespace:NETworkManager.Validators" |
| 7 | + xmlns:IconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" |
7 | 8 | mc:Ignorable="d"> |
8 | 9 | <StackPanel Margin="0,0,0,20"> |
9 | 10 | <Grid Margin="0,20,0,10"> |
|
23 | 24 | </Grid.RowDefinitions> |
24 | 25 | <Grid.ColumnDefinitions> |
25 | 26 | <ColumnDefinition Width="*" /> |
| 27 | + <ColumnDefinition Width="10" /> |
26 | 28 | <ColumnDefinition Width="*" /> |
| 29 | + <ColumnDefinition Width="10" /> |
| 30 | + <ColumnDefinition Width="Auto" /> |
27 | 31 | </Grid.ColumnDefinitions> |
28 | 32 | <TextBlock Grid.Column="0" Grid.Row="0" Text="{DynamicResource String_Name}" /> |
29 | | - <TextBox x:Name="txtName" Grid.Column="1" Grid.Row="0"> |
| 33 | + <TextBox x:Name="txtName" Grid.Column="2" Grid.Row="0"> |
30 | 34 | <TextBox.Text> |
31 | 35 | <Binding Path="Name" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged"> |
32 | 36 | <Binding.ValidationRules> |
|
36 | 40 | </TextBox.Text> |
37 | 41 | </TextBox> |
38 | 42 | <TextBlock Grid.Column="0" Grid.Row="2" Text="{DynamicResource String_Hostname}" /> |
39 | | - <TextBox x:Name="txtHostname" Grid.Column="1" Grid.Row="2"> |
| 43 | + <TextBox x:Name="txtHostname" Grid.Column="2" Grid.Row="2"> |
40 | 44 | <TextBox.Text> |
41 | 45 | <Binding Path="Hostname" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged"> |
42 | 46 | <Binding.ValidationRules> |
|
46 | 50 | </TextBox.Text> |
47 | 51 | </TextBox> |
48 | 52 | <TextBlock Grid.Column="0" Grid.Row="4" Text="{DynamicResource String_Group}" /> |
49 | | - <ComboBox x:Name="cbGroup" Grid.Column="1" Grid.Row="4" Style="{StaticResource EditableComboBox}" ItemsSource="{Binding Groups}"> |
| 53 | + <ComboBox x:Name="cbGroup" Grid.Column="2" Grid.Row="4" Style="{StaticResource EditableComboBox}" ItemsSource="{Binding Groups}"> |
50 | 54 | <ComboBox.Text> |
51 | 55 | <Binding Path="Group" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged"> |
52 | 56 | <Binding.ValidationRules> |
|
56 | 60 | </ComboBox.Text> |
57 | 61 | </ComboBox> |
58 | 62 | <TextBlock Grid.Column="0" Grid.Row="6" Text="{DynamicResource String_Tags}" /> |
59 | | - <TextBox x:Name="txtTags" Grid.Column="1" Grid.Row="6"> |
| 63 | + <TextBox x:Name="txtTags" Grid.Column="2" Grid.Row="6"> |
60 | 64 | <TextBox.Text> |
61 | 65 | <Binding Path="Tags" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged"> |
62 | 66 | <Binding.ValidationRules> |
|
65 | 69 | </Binding> |
66 | 70 | </TextBox.Text> |
67 | 71 | </TextBox> |
| 72 | + <Rectangle Width="24" Height="24" Grid.Column="4" Grid.Row="6" ToolTip="{DynamicResource String_HelpMessage_Tags}" Style="{StaticResource HelpImageRectangle}" /> |
68 | 73 | </Grid> |
69 | 74 | <StackPanel Orientation="Horizontal" HorizontalAlignment="Right"> |
70 | 75 | <Button Content="{DynamicResource String_Button_Cancel}" Command="{Binding CancelCommand}" IsCancel="True" Style="{StaticResource DefaultButton}" /> |
71 | 76 | <Button Content="{DynamicResource String_Button_Save}" Command="{Binding SaveCommand}" IsDefault="True" Margin="10,0,0,0"> |
72 | 77 | <Button.Style> |
73 | 78 | <Style TargetType="{x:Type Button}" BasedOn="{StaticResource HighlightedButton}"> |
74 | 79 | <Setter Property="IsEnabled" Value="False" /> |
75 | | - <Style.Triggers> |
| 80 | + <Style.Triggers> |
76 | 81 | <MultiDataTrigger> |
77 | 82 | <MultiDataTrigger.Conditions> |
78 | 83 | <Condition Binding="{Binding Path=(Validation.HasError), ElementName=txtName}" Value="False" /> |
|
0 commit comments