Ejemplo n.º 1
0
        private void WindowTitleThumbMoveOnDragDelta(object sender, DragDeltaEventArgs dragDeltaEventArgs)
        {
            var window = this.ParentWindow;

            if (window != null && this.Position != Position.Bottom)
            {
                MetroWindow.DoWindowTitleThumbMoveOnDragDelta((Thumb)sender, window, dragDeltaEventArgs);
            }
        }
Ejemplo n.º 2
0
        private void WindowTitleThumbMoveOnDragDelta(object sender, DragDeltaEventArgs dragDeltaEventArgs)
        {
            var window = this.ParentWindow;

            if (window != null && this.Position != Position.Bottom && this.dragStartedMousePos.GetValueOrDefault().Y <= window.TitlebarHeight && window.TitlebarHeight > 0)
            {
                MetroWindow.DoWindowTitleThumbMoveOnDragDelta(sender as IMetroThumb, window, dragDeltaEventArgs);
            }
        }
Ejemplo n.º 3
0
        private void WindowTitleThumbMoveOnDragDelta(object sender, DragDeltaEventArgs e)
        {
            MetroWindow parentWindow = this.ParentWindow;

            if (parentWindow != null && this.Position != MahApps.Metro.Controls.Position.Bottom)
            {
                MetroWindow.DoWindowTitleThumbMoveOnDragDelta(parentWindow, e);
            }
        }