Exemple #1
0
        private void WindowTitleThumbChangeWindowStateOnMouseDoubleClick(object sender, MouseButtonEventArgs mouseButtonEventArgs)
        {
            var window = this.ParentWindow;

            if (window != null && this.Position != Position.Bottom)
            {
                MetroWindow.DoWindowTitleThumbChangeWindowStateOnMouseDoubleClick(window, mouseButtonEventArgs);
            }
        }
Exemple #2
0
        private void WindowTitleThumbChangeWindowStateOnMouseDoubleClick(object sender, MouseButtonEventArgs mouseButtonEventArgs)
        {
            var window = this.ParentWindow;

            if (window != null && this.Position != Position.Bottom && Mouse.GetPosition((IInputElement)sender).Y <= window.TitlebarHeight && window.TitlebarHeight > 0)
            {
                MetroWindow.DoWindowTitleThumbChangeWindowStateOnMouseDoubleClick(window, mouseButtonEventArgs);
            }
        }
Exemple #3
0
        private void WindowTitleThumbChangeWindowStateOnMouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            MetroWindow parentWindow = this.ParentWindow;

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