C# Class SevenUpdate.Windows.MainWindow

Datei anzeigen Open project: robertbaker/SevenUpdate

Private Properties

Property Type Description

Public Methods

Method Description
ChangeWindowChrome ( object sender, CompositionChangedEventArgs e ) : void

Changes the Window Background when Aero Glass is enabled or disabled.

EnableDragOnGlass ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

Enables the ability to drag the window on glass.

LoadWindowSize ( object sender, RoutedEventArgs e ) : void

Sets the Height and Width of the window from the settings.

MainWindow ( ) : System

Initializes a new instance of the MainWindow class.

SaveWindowSize ( object sender, CancelEventArgs e ) : void

When Seven Update is closing, save the Window Width and Height in the settings.

Protected Methods

Method Description
OnSourceInitialized ( EventArgs e ) : void

Enables Aero Glass on the Window.

Method Details

ChangeWindowChrome() public method

Changes the Window Background when Aero Glass is enabled or disabled.
public ChangeWindowChrome ( object sender, CompositionChangedEventArgs e ) : void
sender object The object that called the event.
e SevenSoftware.Windows.CompositionChangedEventArgs The CompositionChangedEventArgs instance containing the event data.
return void

EnableDragOnGlass() public method

Enables the ability to drag the window on glass.
public EnableDragOnGlass ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object The object that called the event.
e System.Windows.Input.MouseButtonEventArgs The System.Windows.Input.MouseButtonEventArgs instance containing the event data.
return void

LoadWindowSize() public method

Sets the Height and Width of the window from the settings.
public LoadWindowSize ( object sender, RoutedEventArgs e ) : void
sender object The object that called the event.
e System.Windows.RoutedEventArgs The System.Windows.RoutedEventArgs instance containing the event data.
return void

MainWindow() public method

Initializes a new instance of the MainWindow class.
public MainWindow ( ) : System
return System

OnSourceInitialized() protected method

Enables Aero Glass on the Window.
protected OnSourceInitialized ( EventArgs e ) : void
e System.EventArgs The EventArgs instance containing the event data.
return void

SaveWindowSize() public method

When Seven Update is closing, save the Window Width and Height in the settings.
public SaveWindowSize ( object sender, CancelEventArgs e ) : void
sender object The object that called the event.
e CancelEventArgs The System.ComponentModel.CancelEventArgs instance containing the event data.
return void