enhance: add ExtendContentToNonClientArea prop.

This commit is contained in:
NaBian committed 2022-06-13 21:44:43 +08:00
1 parent c3385587e4
commit 0021d649f0
5 files changed
+829 -420

No files matched your search

@@ -145,4 +145,13 @@ public static class WindowAttach
public static bool GetHideWhenClosing(DependencyObject element)
=> (bool) element.GetValue(HideWhenClosingProperty);
public static readonly DependencyProperty ExtendContentToNonClientAreaProperty = DependencyProperty.RegisterAttached(
"ExtendContentToNonClientArea", typeof(bool), typeof(WindowAttach), new PropertyMetadata(ValueBoxes.FalseBox));
public static void SetExtendContentToNonClientArea(DependencyObject element, bool value)
=> element.SetValue(ExtendContentToNonClientAreaProperty, ValueBoxes.BooleanBox(value));
public static bool GetExtendContentToNonClientArea(DependencyObject element)
=> (bool) element.GetValue(ExtendContentToNonClientAreaProperty);
}