C# Class 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.
Inheritance: System.Windows.Controls.TextBox
Afficher le fichier Open project: thoemmi/Solutionizer

Méthodes publiques

Свойство Type Description
EllipsisPlacementProperty System.Windows.DependencyProperty
IsEllipsisEnabledProperty System.Windows.DependencyProperty
LongTextProperty System.Windows.DependencyProperty
UseLongTextForToolTipProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode Description
EllipsisTextBox ( ) : System

Méthodes protégées

Méthode Description
OnGotKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
OnLostKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
OnTextChanged ( System.Windows.Controls.TextChangedEventArgs e ) : void

Private Methods

Méthode Description
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

Method Details

EllipsisTextBox() public méthode

public EllipsisTextBox ( ) : System
Résultat System

OnGotKeyboardFocus() protected méthode

protected OnGotKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
e System.Windows.Input.KeyboardFocusChangedEventArgs
Résultat void

OnLostKeyboardFocus() protected méthode

protected OnLostKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
e System.Windows.Input.KeyboardFocusChangedEventArgs
Résultat void

OnTextChanged() protected méthode

protected OnTextChanged ( System.Windows.Controls.TextChangedEventArgs e ) : void
e System.Windows.Controls.TextChangedEventArgs
Résultat void

Property Details

EllipsisPlacementProperty public_oe static_oe property

public static DependencyProperty,System.Windows EllipsisPlacementProperty
Résultat System.Windows.DependencyProperty

IsEllipsisEnabledProperty public_oe static_oe property

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
Résultat System.Windows.DependencyProperty

LongTextProperty public_oe static_oe property

public static DependencyProperty,System.Windows LongTextProperty
Résultat System.Windows.DependencyProperty

UseLongTextForToolTipProperty public_oe static_oe property

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
Résultat System.Windows.DependencyProperty