private void OnDisableDragMoveChanged() { WindowChromeUtil.SetCaptionHeight(this, DisableDragMove ? 0 : WindowXCaption.GetHeight(this)); }
private static void OnWindowChromeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { var windowX = (WindowX)d; WindowChromeUtil.SetCaptionHeight(windowX, windowX.DisableDragMove ? 0 : WindowXCaption.GetHeight(windowX)); }
private void OnIsMaskVisibleChanged() { WindowChromeUtil.SetCaptionHeight(this, IsMaskVisible ? 0 : (DisableDragMove ? 0 : WindowXCaption.GetHeight(this))); }
private static void OnHeightChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { var windowX = d as WindowX; if (windowX == null) { return; } WindowChromeUtil.SetCaptionHeight(windowX, windowX.IsMaskVisible ? 0 : (windowX.DisableDragMove ? 0 : WindowXCaption.GetHeight(windowX))); }