コード例 #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);
            }
        }
コード例 #2
0
ファイル: Flyout.cs プロジェクト: y497068561/Inflexion2
        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);
            }
        }
コード例 #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);
            }
        }