From 665eeb3eb27f67d67113b005bbe9c00a4087676d Mon Sep 17 00:00:00 2001 From: brianlagunas_cp Date: Wed, 23 Mar 2011 21:42:47 +0000 Subject: [PATCH] ChildWindow: set WindowState property to BindTwoWayByDefault. This will eliminate the need to specifiy Mode=TwoWay in the WindowState binding. --- .../ChildWindow/Implementation/ChildWindow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/ChildWindow/Implementation/ChildWindow.cs b/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/ChildWindow/Implementation/ChildWindow.cs index 94c74047..826c78fa 100644 --- a/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/ChildWindow/Implementation/ChildWindow.cs +++ b/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); }