C# Class Gearset.Components.InspectorWPF.NumericItem

Interaction logic for Spinner.xaml
Inheritance: Gearset.Components.InspectorWPF.VisualItemBase
Datei anzeigen Open project: juancampa/Gearset

Public Properties

Property Type Description
IsEditing bool
ModeProperty System.Windows.DependencyProperty
realValue Object

Public Methods

Method Description
Button1_MouseDownHandler ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
Button1_MouseMoveHandler ( object sender, System.Windows.Input.MouseEventArgs e ) : void
Button1_MouseUpHandler ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
NumericItem ( ) : System
TextBox1_KeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void
TextBox1_LostFocus ( object sender, RoutedEventArgs e ) : void
UpdateUI ( Object value ) : void

Updates the UI.

UpdateVariable ( ) : void

Updates the variable fromt he UI.

Private Methods

Method Description
Clamp ( int value, int min, int max ) : int
MouseDownHandler ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
OnModeChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs args ) : void
PlotToggleButton_Checked ( object sender, RoutedEventArgs e ) : void

Method Details

Button1_MouseDownHandler() public method

public Button1_MouseDownHandler ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
return void

Button1_MouseMoveHandler() public method

public Button1_MouseMoveHandler ( object sender, System.Windows.Input.MouseEventArgs e ) : void
sender object
e System.Windows.Input.MouseEventArgs
return void

Button1_MouseUpHandler() public method

public Button1_MouseUpHandler ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
return void

NumericItem() public method

public NumericItem ( ) : System
return System

TextBox1_KeyDown() public method

public TextBox1_KeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void
sender object
e System.Windows.Input.KeyEventArgs
return void

TextBox1_LostFocus() public method

public TextBox1_LostFocus ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
return void

UpdateUI() public method

Updates the UI.
public UpdateUI ( Object value ) : void
value Object
return void

UpdateVariable() public method

Updates the variable fromt he UI.
public UpdateVariable ( ) : void
return void

Property Details

IsEditing public_oe property

Defines the state of the spinner, if IsEditing is because the user is currently editing the value so the Updating value of the TreeNode will be set to false until the control loses focus.
public bool IsEditing
return bool

ModeProperty public_oe static_oe property

The mode of the Numeric Item
public static DependencyProperty,System.Windows ModeProperty
return System.Windows.DependencyProperty

realValue public_oe property

public Object realValue
return Object