1- <UserControl x : Class =" NETworkManager.Views.CredentialsSetPasswordDialog "
1+ <simpleChildWindow : ChildWindow x : Class =" NETworkManager.Views.CredentialsSetPasswordChildWindow "
22 xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33 xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
44 xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
77 xmlns : interactivity =" http://schemas.microsoft.com/xaml/behaviors"
88 xmlns : viewModels =" clr-namespace:NETworkManager.ViewModels"
99 xmlns : localization =" clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization"
10- mc : Ignorable =" d" Loaded =" UserControl_Loaded"
11- d : DataContext =" {d:DesignInstance viewModels:CredentialsSetPasswordViewModel}" >
12- <Grid Margin =" 0,20" >
10+ xmlns : simpleChildWindow =" clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow"
11+ CloseButtonCommand =" {Binding Path=CancelCommand}"
12+ Style =" {StaticResource DefaultChildWindow}"
13+ Loaded =" ChildWindow_OnLoaded"
14+ mc : Ignorable =" d" d : DataContext =" {d:DesignInstance viewModels:CredentialsSetPasswordViewModel}" >
15+ <Grid Margin =" 10" >
1316 <Grid .RowDefinitions>
1417 <RowDefinition Height =" *" />
1518 <RowDefinition Height =" Auto" />
3336 </Grid .RowDefinitions>
3437 <TextBlock Grid.Column=" 0" Grid.Row=" 0" Text =" {x:Static localization:Strings.Password}" />
3538 <PasswordBox x : Name =" PasswordBoxPassword" Grid.Column=" 2" Grid.Row=" 0"
36- Style =" {StaticResource DefaultPasswordBox}" >
39+ Style =" {StaticResource DefaultPasswordBox}" >
3740 <interactivity : Interaction .Behaviors>
3841 <wpfHelpers : PasswordBoxBindingBehavior
39- Password =" {Binding Password, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
42+ Password =" {Binding Password, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
4043 </interactivity : Interaction .Behaviors>
4144 </PasswordBox >
4245 <TextBlock Grid.Column=" 0" Grid.Row=" 2" Text =" {x:Static localization:Strings.Repeat}" />
4346 <PasswordBox x : Name =" PasswordBoxPasswordRepeat" Grid.Column=" 2" Grid.Row=" 2"
44- Style =" {StaticResource DefaultPasswordBox}" >
47+ Style =" {StaticResource DefaultPasswordBox}" >
4548 <interactivity : Interaction .Behaviors>
4649 <wpfHelpers : PasswordBoxBindingBehavior
47- Password =" {Binding PasswordRepeat, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
50+ Password =" {Binding PasswordRepeat, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
4851 </interactivity : Interaction .Behaviors>
4952 </PasswordBox >
5053 </Grid >
5154 <TextBlock Grid.Row=" 1" Foreground =" {DynamicResource MahApps.Brushes.Accent}"
52- Text =" {x:Static localization:Strings.PasswordsDoNotMatch}" Margin =" 0,10,0,0" >
55+ Text =" {x:Static localization:Strings.PasswordsDoNotMatch}" Margin =" 0,10,0,0" >
5356 <TextBlock .Style>
5457 <Style TargetType =" {x:Type TextBlock}" BasedOn =" {StaticResource DefaultTextBlock}" >
5558 <Setter Property =" Visibility" Value =" Collapsed" />
6972 </TextBlock >
7073 <StackPanel Grid.Row=" 3" Orientation =" Horizontal" HorizontalAlignment =" Right" >
7174 <Button Content =" {x:Static localization:Strings.OK}" Command =" {Binding OKCommand}" IsDefault =" True"
72- Margin =" 0,0,10,0" >
75+ Margin =" 0,0,10,0" >
7376 <Button .Style>
7477 <Style TargetType =" {x:Type Button}" BasedOn =" {StaticResource HighlightedButton}" >
7578 <Setter Property =" IsEnabled" Value =" False" />
8891 </Button .Style>
8992 </Button >
9093 <Button Content =" {x:Static localization:Strings.Cancel}" Command =" {Binding CancelCommand}" IsCancel =" True"
91- Style =" {StaticResource DefaultButton}" />
94+ Style =" {StaticResource DefaultButton}" />
9295 </StackPanel >
9396 </Grid >
94- </UserControl >
97+ </simpleChildWindow : ChildWindow >
0 commit comments