Browse Source

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

import/raw
brianlagunas_cp 16 years ago
parent
commit
9d381dbe80
  1. 2
      Main/Source/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/ChildWindow/Implementation/ChildWindow.cs

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

@ -424,7 +424,7 @@ namespace Microsoft.Windows.Controls
#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
{
get { return (WindowState)GetValue(WindowStateProperty); }

Loading…
Cancel
Save