C# Class BlipFace.Helpers.WindowSettings

Persists a Window's Size, Location to UserScopeSettings
Afficher le fichier Open project: ksopyla/blipface Class Usage Examples

Méthodes publiques

Свойство Type Description
SaveProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode Description
SetSave ( DependencyObject dependencyObject, bool enabled ) : void
WindowSettings ( Window window ) : System

Méthodes protégées

Méthode Description
LoadWindowState ( ) : void

Load the Window Size Location and State from the settings object

SaveWindowState ( ) : void

Save the Window Size, Location and State to the settings object

Private Methods

Méthode Description
Attach ( ) : void
OnSaveInvalidated ( DependencyObject dependencyObject, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Called when Save is changed on an object.

window_Closing ( object sender, CancelEventArgs e ) : void
window_Initialized ( object sender, EventArgs e ) : void

Method Details

LoadWindowState() protected méthode

Load the Window Size Location and State from the settings object
protected LoadWindowState ( ) : void
Résultat void

SaveWindowState() protected méthode

Save the Window Size, Location and State to the settings object
protected SaveWindowState ( ) : void
Résultat void

SetSave() public static méthode

public static SetSave ( DependencyObject dependencyObject, bool enabled ) : void
dependencyObject System.Windows.DependencyObject
enabled bool
Résultat void

WindowSettings() public méthode

public WindowSettings ( Window window ) : System
window System.Windows.Window
Résultat System

Property Details

SaveProperty public_oe static_oe property

Register the "Save" attached property and the "OnSaveInvalidated" callback
public static DependencyProperty,System.Windows SaveProperty
Résultat System.Windows.DependencyProperty