Skip to content

Commit 312def6

Browse files
authored
PopupBox.IsPopupOpen should be two way by default to match Popup.IsOpen (#2422)
1 parent 619c4e4 commit 312def6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MaterialDesignThemes.Wpf/PopupBox.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public DataTemplate? PopupContentTemplate
224224
}
225225

226226
public static readonly DependencyProperty IsPopupOpenProperty = DependencyProperty.Register(
227-
nameof(IsPopupOpen), typeof(bool), typeof(PopupBox), new FrameworkPropertyMetadata(default(bool), IsPopupOpenPropertyChangedCallback));
227+
nameof(IsPopupOpen), typeof(bool), typeof(PopupBox), new FrameworkPropertyMetadata(default(bool), FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, IsPopupOpenPropertyChangedCallback));
228228

229229
private static void IsPopupOpenPropertyChangedCallback(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs dependencyPropertyChangedEventArgs)
230230
{

0 commit comments

Comments
 (0)