Exemple #1
0
 private void OnDisableDragMoveChanged()
 {
     WindowChromeUtil.SetCaptionHeight(this, DisableDragMove ? 0 : WindowXCaption.GetHeight(this));
 }
Exemple #2
0
        private static void OnWindowChromeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            var windowX = (WindowX)d;

            WindowChromeUtil.SetCaptionHeight(windowX, windowX.DisableDragMove ? 0 : WindowXCaption.GetHeight(windowX));
        }
Exemple #3
0
 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)));
        }