C# Class Fluent.TextBox

Inheritance: RibbonControl
Mostra file Open project: Gainedge/BetterExplorer Class Usage Examples

Public Properties

Property Type Description
AutoWordSelectionProperty System.Windows.DependencyProperty
CaretBrushProperty System.Windows.DependencyProperty
CharacterCasingProperty System.Windows.DependencyProperty
InputWidthProperty System.Windows.DependencyProperty
IsReadOnlyProperty System.Windows.DependencyProperty
IsUndoEnabledProperty System.Windows.DependencyProperty
MaxLengthProperty System.Windows.DependencyProperty
SelectionBrushProperty System.Windows.DependencyProperty
SelectionOpacityProperty System.Windows.DependencyProperty
TextAlignmentProperty System.Windows.DependencyProperty
TextDecorationsProperty System.Windows.DependencyProperty
TextProperty System.Windows.DependencyProperty
UndoLimitProperty System.Windows.DependencyProperty

Public Methods

Method Description
AppendText ( string text ) : void

Appends text

Copy ( ) : void

Copies selected content to the clipboard

CreateQuickAccessItem ( ) : FrameworkElement

Gets control which represents shortcut item. This item MUST be syncronized with the original and send command to original one control.

Cut ( ) : void

Cuts selected content to the clipboard

OnApplyTemplate ( ) : void

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate

OnKeyTipPressed ( ) : void

Handles key tip pressed

OnTextBoxTemplatedGotKeyboardFocus ( object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
OnTextBoxTemplatedKeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void
OnTextBoxTemplatedLostFocus ( object sender, RoutedEventArgs e ) : void
OnTextBoxTemplatedSelectionChanged ( object sender, RoutedEventArgs e ) : void
OnTextBoxTemplatedTextChanged ( object sender, System.Windows.Controls.TextChangedEventArgs e ) : void
Paste ( ) : void

Pastes content from the clipboard

RaiseSelectionChanged ( ) : void
RaiseTextChanged ( System.Windows.Controls.TextChangedEventArgs args ) : void
Redo ( ) : bool

Redoes the most recent undo command

Select ( int start, int length ) : void

Selects contents

SelectAll ( ) : void

Selects all the contents

Undo ( ) : bool

Undoes the most recent undo command

Protected Methods

Method Description
BindQuickAccessItem ( FrameworkElement element ) : void

This method must be overridden to bind properties to use in quick access creating

OnGotFocus ( RoutedEventArgs e ) : void

Invoked whenever an unhandled E:System.Windows.UIElement.GotFocus event reaches this element in its route.

OnKeyUp ( System.Windows.Input.KeyEventArgs e ) : void

Invoked when an unhandled System.Windows.Input.Keyboard.KeyUp�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

Private Methods

Method Description
IsTemplateValid ( ) : bool
OnCoerceStyle ( DependencyObject d, object basevalue ) : object
TextBox ( ) : System

Method Details

AppendText() public method

Appends text
public AppendText ( string text ) : void
text string Text
return void

BindQuickAccessItem() protected method

This method must be overridden to bind properties to use in quick access creating
protected BindQuickAccessItem ( FrameworkElement element ) : void
element System.Windows.FrameworkElement Toolbar item
return void

Copy() public method

Copies selected content to the clipboard
public Copy ( ) : void
return void

CreateQuickAccessItem() public method

Gets control which represents shortcut item. This item MUST be syncronized with the original and send command to original one control.
public CreateQuickAccessItem ( ) : FrameworkElement
return System.Windows.FrameworkElement

Cut() public method

Cuts selected content to the clipboard
public Cut ( ) : void
return void

OnApplyTemplate() public method

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate
public OnApplyTemplate ( ) : void
return void

OnGotFocus() protected method

Invoked whenever an unhandled E:System.Windows.UIElement.GotFocus event reaches this element in its route.
protected OnGotFocus ( RoutedEventArgs e ) : void
e System.Windows.RoutedEventArgs The that contains the event data.
return void

OnKeyTipPressed() public method

Handles key tip pressed
public OnKeyTipPressed ( ) : void
return void

OnKeyUp() protected method

Invoked when an unhandled System.Windows.Input.Keyboard.KeyUp�attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
protected OnKeyUp ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs The System.Windows.Input.KeyEventArgs that contains the event data.
return void

OnTextBoxTemplatedGotKeyboardFocus() public method

public OnTextBoxTemplatedGotKeyboardFocus ( object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
sender object
e System.Windows.Input.KeyboardFocusChangedEventArgs
return void

OnTextBoxTemplatedKeyDown() public method

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

OnTextBoxTemplatedLostFocus() public method

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

OnTextBoxTemplatedSelectionChanged() public method

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

OnTextBoxTemplatedTextChanged() public method

public OnTextBoxTemplatedTextChanged ( object sender, System.Windows.Controls.TextChangedEventArgs e ) : void
sender object
e System.Windows.Controls.TextChangedEventArgs
return void

Paste() public method

Pastes content from the clipboard
public Paste ( ) : void
return void

RaiseSelectionChanged() public method

public RaiseSelectionChanged ( ) : void
return void

RaiseTextChanged() public method

public RaiseTextChanged ( System.Windows.Controls.TextChangedEventArgs args ) : void
args System.Windows.Controls.TextChangedEventArgs
return void

Redo() public method

Redoes the most recent undo command
public Redo ( ) : bool
return bool

Select() public method

Selects contents
public Select ( int start, int length ) : void
start int Start
length int Length
return void

SelectAll() public method

Selects all the contents
public SelectAll ( ) : void
return void

Undo() public method

Undoes the most recent undo command
public Undo ( ) : bool
return bool

Property Details

AutoWordSelectionProperty public_oe static_oe property

Using a DependencyProperty as the backing store for AutoWordSelection. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows AutoWordSelectionProperty
return System.Windows.DependencyProperty

CaretBrushProperty public_oe static_oe property

Using a DependencyProperty as the backing store for CaretBrush. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows CaretBrushProperty
return System.Windows.DependencyProperty

CharacterCasingProperty public_oe static_oe property

Using a DependencyProperty as the backing store for CharacterCasing. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows CharacterCasingProperty
return System.Windows.DependencyProperty

InputWidthProperty public_oe static_oe property

Using a DependencyProperty as the backing store for InputWidth. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows InputWidthProperty
return System.Windows.DependencyProperty

IsReadOnlyProperty public_oe static_oe property

Using a DependencyProperty as the backing store for IsReadonly. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows IsReadOnlyProperty
return System.Windows.DependencyProperty

IsUndoEnabledProperty public_oe static_oe property

Using a DependencyProperty as the backing store for IsUndoEnabled. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows IsUndoEnabledProperty
return System.Windows.DependencyProperty

MaxLengthProperty public_oe static_oe property

Using a DependencyProperty as the backing store for MaxLength. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows MaxLengthProperty
return System.Windows.DependencyProperty

SelectionBrushProperty public_oe static_oe property

Using a DependencyProperty as the backing store for SelectionBrush. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows SelectionBrushProperty
return System.Windows.DependencyProperty

SelectionOpacityProperty public_oe static_oe property

Using a DependencyProperty as the backing store for SelectionOpacity. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows SelectionOpacityProperty
return System.Windows.DependencyProperty

TextAlignmentProperty public_oe static_oe property

Using a DependencyProperty as the backing store for TextAlignment. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows TextAlignmentProperty
return System.Windows.DependencyProperty

TextDecorationsProperty public_oe static_oe property

Using a DependencyProperty as the backing store for TextDecorations. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows TextDecorationsProperty
return System.Windows.DependencyProperty

TextProperty public_oe static_oe property

Using a DependencyProperty as the backing store for Content. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows TextProperty
return System.Windows.DependencyProperty

UndoLimitProperty public_oe static_oe property

Using a DependencyProperty as the backing store for UndoLimit. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows UndoLimitProperty
return System.Windows.DependencyProperty