C# Класс Fluent.TextBox

Наследование: RibbonControl
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
IsTemplateValid ( ) : bool
OnCoerceStyle ( DependencyObject d, object basevalue ) : object
TextBox ( ) : System

Описание методов

AppendText() публичный Метод

Appends text
public AppendText ( string text ) : void
text string Text
Результат void

BindQuickAccessItem() защищенный Метод

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
Результат void

Copy() публичный Метод

Copies selected content to the clipboard
public Copy ( ) : void
Результат void

CreateQuickAccessItem() публичный Метод

Gets control which represents shortcut item. This item MUST be syncronized with the original and send command to original one control.
public CreateQuickAccessItem ( ) : FrameworkElement
Результат System.Windows.FrameworkElement

Cut() публичный Метод

Cuts selected content to the clipboard
public Cut ( ) : void
Результат void

OnApplyTemplate() публичный Метод

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate
public OnApplyTemplate ( ) : void
Результат void

OnGotFocus() защищенный Метод

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.
Результат void

OnKeyTipPressed() публичный Метод

Handles key tip pressed
public OnKeyTipPressed ( ) : void
Результат void

OnKeyUp() защищенный Метод

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.
Результат void

OnTextBoxTemplatedGotKeyboardFocus() публичный Метод

public OnTextBoxTemplatedGotKeyboardFocus ( object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
sender object
e System.Windows.Input.KeyboardFocusChangedEventArgs
Результат void

OnTextBoxTemplatedKeyDown() публичный Метод

public OnTextBoxTemplatedKeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void
sender object
e System.Windows.Input.KeyEventArgs
Результат void

OnTextBoxTemplatedLostFocus() публичный Метод

public OnTextBoxTemplatedLostFocus ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
Результат void

OnTextBoxTemplatedSelectionChanged() публичный Метод

public OnTextBoxTemplatedSelectionChanged ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
Результат void

OnTextBoxTemplatedTextChanged() публичный Метод

public OnTextBoxTemplatedTextChanged ( object sender, System.Windows.Controls.TextChangedEventArgs e ) : void
sender object
e System.Windows.Controls.TextChangedEventArgs
Результат void

Paste() публичный Метод

Pastes content from the clipboard
public Paste ( ) : void
Результат void

RaiseSelectionChanged() публичный Метод

public RaiseSelectionChanged ( ) : void
Результат void

RaiseTextChanged() публичный Метод

public RaiseTextChanged ( System.Windows.Controls.TextChangedEventArgs args ) : void
args System.Windows.Controls.TextChangedEventArgs
Результат void

Redo() публичный Метод

Redoes the most recent undo command
public Redo ( ) : bool
Результат bool

Select() публичный Метод

Selects contents
public Select ( int start, int length ) : void
start int Start
length int Length
Результат void

SelectAll() публичный Метод

Selects all the contents
public SelectAll ( ) : void
Результат void

Undo() публичный Метод

Undoes the most recent undo command
public Undo ( ) : bool
Результат bool

Описание свойств

AutoWordSelectionProperty публичное статическое свойство

Using a DependencyProperty as the backing store for AutoWordSelection. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows AutoWordSelectionProperty
Результат System.Windows.DependencyProperty

CaretBrushProperty публичное статическое свойство

Using a DependencyProperty as the backing store for CaretBrush. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows CaretBrushProperty
Результат System.Windows.DependencyProperty

CharacterCasingProperty публичное статическое свойство

Using a DependencyProperty as the backing store for CharacterCasing. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows CharacterCasingProperty
Результат System.Windows.DependencyProperty

InputWidthProperty публичное статическое свойство

Using a DependencyProperty as the backing store for InputWidth. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows InputWidthProperty
Результат System.Windows.DependencyProperty

IsReadOnlyProperty публичное статическое свойство

Using a DependencyProperty as the backing store for IsReadonly. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows IsReadOnlyProperty
Результат System.Windows.DependencyProperty

IsUndoEnabledProperty публичное статическое свойство

Using a DependencyProperty as the backing store for IsUndoEnabled. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows IsUndoEnabledProperty
Результат System.Windows.DependencyProperty

MaxLengthProperty публичное статическое свойство

Using a DependencyProperty as the backing store for MaxLength. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows MaxLengthProperty
Результат System.Windows.DependencyProperty

SelectionBrushProperty публичное статическое свойство

Using a DependencyProperty as the backing store for SelectionBrush. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows SelectionBrushProperty
Результат System.Windows.DependencyProperty

SelectionOpacityProperty публичное статическое свойство

Using a DependencyProperty as the backing store for SelectionOpacity. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows SelectionOpacityProperty
Результат System.Windows.DependencyProperty

TextAlignmentProperty публичное статическое свойство

Using a DependencyProperty as the backing store for TextAlignment. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows TextAlignmentProperty
Результат System.Windows.DependencyProperty

TextDecorationsProperty публичное статическое свойство

Using a DependencyProperty as the backing store for TextDecorations. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows TextDecorationsProperty
Результат System.Windows.DependencyProperty

TextProperty публичное статическое свойство

Using a DependencyProperty as the backing store for Content. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows TextProperty
Результат System.Windows.DependencyProperty

UndoLimitProperty публичное статическое свойство

Using a DependencyProperty as the backing store for UndoLimit. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows UndoLimitProperty
Результат System.Windows.DependencyProperty