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

            if (window != null && this.Position != Position.Bottom)
            {
                MetroWindow.DoWindowTitleThumbChangeWindowStateOnMouseDoubleClick(window, mouseButtonEventArgs);
            }
        }
Exemplo n.º 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);
            }
        }
Exemplo n.º 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);
            }
        }