C# Class Gearset.Components.EditableTextBlock

Inheritance: System.Windows.Controls.TextBox
Show file Open project: juancampa/Gearset

Public Properties

Property Type Description
IsEditingProperty System.Windows.DependencyProperty

Public Methods

Method Description
EditableTextBlock ( ) : System
OnApplyTemplate ( ) : void
StartEdit ( ) : void

Same as setting IsEditing

StopEdit ( ) : void

Same as unsetting IsEditing

Protected Methods

Method Description
OnIsEditingChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs args ) : void
OnMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void

Private Methods

Method Description
box_LostKeyboardFocus ( object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
box_PreviewKeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void

Method Details

EditableTextBlock() public method

public EditableTextBlock ( ) : System
return System

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

OnIsEditingChanged() protected static method

protected static OnIsEditingChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs args ) : void
d System.Windows.DependencyObject
args System.Windows.DependencyPropertyChangedEventArgs
return void

OnMouseDown() protected method

protected OnMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
return void

StartEdit() public method

Same as setting IsEditing
public StartEdit ( ) : void
return void

StopEdit() public method

Same as unsetting IsEditing
public StopEdit ( ) : void
return void

Property Details

IsEditingProperty public static property

Gets or sets whether this TextBlock is editing or not.
public static DependencyProperty,System.Windows IsEditingProperty
return System.Windows.DependencyProperty