C# Class SevenSoftware.Windows.Controls.UacButton

Provides a WPF button that displays a UAC Shield icon when required.
Inheritance: System.Windows.Controls.Button, INotifyPropertyChanged
Show file Open project: robertbaker/SevenUpdate

Public Methods

Method Description
UacButton ( ) : System

Initializes a new instance of the UacButton class.

Private Methods

Method Description
ChangeUacIcon ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Changes the UAC icon.

GetToolTip ( ) : object

Returns current "actual" ToolTip.

OnButtonTextChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles a change to the ButtonText property.

OnIsShieldNeededChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles a change to the IsShieldNeeded property.

Adds or removes the UACShieldAdorner as appropriate

OnLoaded ( object sender, RoutedEventArgs e ) : void

Called when the control is loaded.

OnPropertyChanged ( string name ) : void

When a property has changed, call the OnPropertyChanged Event.

OnShieldIconChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles a change to the ShieldIcon property.

Method Details

UacButton() public method

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