C# Класс Solutionizer.Controls.EllipsisTextBox

This is a subclass of TextBox with the ability to show an ellipsis when the Text doesn't fit in the visible area.
Наследование: System.Windows.Controls.TextBox
Показать файл Открыть проект

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

Свойство Тип Описание
EllipsisPlacementProperty System.Windows.DependencyProperty
IsEllipsisEnabledProperty System.Windows.DependencyProperty
LongTextProperty System.Windows.DependencyProperty
UseLongTextForToolTipProperty System.Windows.DependencyProperty

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

Метод Описание
EllipsisTextBox ( ) : System

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

Метод Описание
OnGotKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
OnLostKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
OnTextChanged ( System.Windows.Controls.TextChangedEventArgs e ) : void

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

Метод Описание
CalcText ( ) : void
EllispsisPlacementChanged ( DependencyObject dependencyObject, System.Windows.DependencyPropertyChangedEventArgs dependencyPropertyChangedEventArgs ) : void
IsEllipsisEnabledChanged ( DependencyObject dependencyObject, System.Windows.DependencyPropertyChangedEventArgs dependencyPropertyChangedEventArgs ) : void
LongTextChanged ( DependencyObject dependencyObject, System.Windows.DependencyPropertyChangedEventArgs dependencyPropertyChangedEventArgs ) : void
PathCompactPathEx ( [ pszOut, string szPath, int cchMax, int dwFlags ) : bool
PrepareForLayout ( ) : void
SetText ( string text ) : void
TextBoxWithEllipsis_LayoutUpdated ( object sender, EventArgs e ) : void
TextBoxWithEllipsis_SizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void
UseLongTextForToolTipChanged ( DependencyObject dependencyObject, System.Windows.DependencyPropertyChangedEventArgs dependencyPropertyChangedEventArgs ) : void

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

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

public EllipsisTextBox ( ) : System
Результат System

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

protected OnGotKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
e System.Windows.Input.KeyboardFocusChangedEventArgs
Результат void

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

protected OnLostKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
e System.Windows.Input.KeyboardFocusChangedEventArgs
Результат void

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

protected OnTextChanged ( System.Windows.Controls.TextChangedEventArgs e ) : void
e System.Windows.Controls.TextChangedEventArgs
Результат void

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

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

public static DependencyProperty,System.Windows EllipsisPlacementProperty
Результат System.Windows.DependencyProperty

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

If true, Text/LongText will be truncated with ellipsis to fit in the visible area of the TextBox (except when it has the focus).
public static DependencyProperty,System.Windows IsEllipsisEnabledProperty
Результат System.Windows.DependencyProperty

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

public static DependencyProperty,System.Windows LongTextProperty
Результат System.Windows.DependencyProperty

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

If true, ToolTip will be set to LongText whenever LongText doesn't fit in the visible area. If false, ToolTip will be set to null unless the user sets it to something other than LongText.
public static DependencyProperty,System.Windows UseLongTextForToolTipProperty
Результат System.Windows.DependencyProperty