Browse Source

ChildWindow: set WindowState property to BindTwoWayByDefault. This will eliminate the need to specifiy Mode=TwoWay in the WindowState binding.

pull/1645/head
brianlagunas_cp 15 years ago
parent
commit
665eeb3eb2
  1. 2
      ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/ChildWindow/Implementation/ChildWindow.cs

2
ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/ChildWindow/Implementation/ChildWindow.cs

@ -424,7 +424,7 @@ namespace Microsoft.Windows.Controls
#region WindowState #region WindowState
public static readonly DependencyProperty WindowStateProperty = DependencyProperty.Register("WindowState", typeof(WindowState), typeof(ChildWindow), new PropertyMetadata(WindowState.Open, new PropertyChangedCallback(OnWindowStatePropertyChanged))); public static readonly DependencyProperty WindowStateProperty = DependencyProperty.Register("WindowState", typeof(WindowState), typeof(ChildWindow), new FrameworkPropertyMetadata(WindowState.Open, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnWindowStatePropertyChanged));
public WindowState WindowState public WindowState WindowState
{ {
get { return (WindowState)GetValue(WindowStateProperty); } get { return (WindowState)GetValue(WindowStateProperty); }

Loading…
Cancel
Save