EnhancedTextBox ClassDW.WPFToolkit Documentation
Enhances the TextBox by the possibilities to show background text, drop files and folders and place additional controls in.
Inheritance Hierarchy

SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.MediaVisual
        System.WindowsUIElement
          System.WindowsFrameworkElement
            System.Windows.ControlsControl
              System.Windows.Controls.PrimitivesTextBoxBase
                System.Windows.ControlsTextBox
                  DW.WPFToolkit.ControlsEnhancedTextBox
                    DW.WPFToolkit.ControlsBrowseTextBox
                    DW.WPFToolkit.ControlsSearchTextBox

Namespace: DW.WPFToolkit.Controls
Assembly: DW.WPFToolkit (in DW.WPFToolkit.dll) Version: 5.6.0.0
Syntax

C#
public class EnhancedTextBox : TextBox

The EnhancedTextBox type exposes the following members.

Constructors

  NameDescription
Public methodEnhancedTextBox
Initializes a new instance of the EnhancedTextBox class.
Top
Methods

  NameDescription
Public methodOnApplyTemplate
The template gets added to the control.
(Overrides TextBoxBaseOnApplyTemplate.)
Protected methodOnGotFocus
Takes care about hiding the info text in the background depending on the InfoAppearance property.
(Overrides FrameworkElementOnGotFocus(RoutedEventArgs).)
Protected methodOnLostFocus
Takes care about display the info text in the background depending on the InfoAppearance property.
(Overrides TextBoxBaseOnLostFocus(RoutedEventArgs).)
Protected methodOnTextChanged
Takes care about display or hide the info text in the background depending on the InfoAppearance property.
(Overrides TextBoxBaseOnTextChanged(TextChangedEventArgs).)
Top
Fields

  NameDescription
Public fieldStatic memberAllowedDropTypeProperty
Identifies the AllowedDropType dependency property.
Public fieldStatic memberDragDropEffectProperty
Identifies the DragDropEffect dependency property.
Public fieldStatic memberFirstControlPositionProperty
Identifies the FirstControlPosition dependency property.
Public fieldStatic memberFirstControlProperty
Identifies the FirstControl dependency property.
Public fieldStatic memberInfoAppearanceProperty
Identifies the InfoAppearance dependency property.
Public fieldStatic memberInfoTextFontStyleProperty
Identifies the InfoTextFontStyle dependency property.
Public fieldStatic memberInfoTextForegroundProperty
Identifies the InfoTextForeground dependency property.
Public fieldStatic memberInfoTextHorizontalAlignmentProperty
Identifies the InfoTextHorizontalAlignment dependency property.
Public fieldStatic memberInfoTextMarginProperty
Identifies the InfoTextMargin dependency property.
Public fieldStatic memberInfoTextProperty
Identifies the InfoText dependency property.
Public fieldStatic memberInfoTextStyleProperty
Identifies the InfoTextStyle dependency property.
Public fieldStatic memberInfoTextVerticalAlignmentProperty
Identifies the InfoTextVerticalAlignment dependency property.
Public fieldStatic memberSecondControlPositionProperty
Identifies the SecondControlPosition dependency property.
Public fieldStatic memberSecondControlProperty
Identifies the SecondControl dependency property.
Public fieldStatic memberSeparatorProperty
Identifies the Separator dependency property.
Top
Properties

  NameDescription
Public propertyAllowedDropType
Gets or sets a value which indicates what the text box allows to drop in.
Public propertyDragDropEffect
Gets or sets the mouse icon when files or folders (See AllowedDropType) will be dropped into the text box.
Public propertyFirstControl
Gets or sets an additional control placed inside the text box.
Public propertyFirstControlPosition
Gets or sets a value which indicates where the additional FirstControl has to be placed in the text box.
Public propertyInfoAppearance
Gets or sets a value which indicates when the info text in the background is shown.
Public propertyInfoText
Gets or sets the info text shown in the background.
Public propertyInfoTextFontStyle
Gets or sets the font style of the info text shown in the background.
Public propertyInfoTextForeground
Gets or sets the foreground color of the info text shown in the background
Public propertyInfoTextHorizontalAlignment
Gets or sets the horizontal alignment of the info text shown in the background.
Public propertyInfoTextMargin
Gets or sets the margin for the info text shown in the background.
Public propertyInfoTextStyle
Gets or sets the style of the info text shown in the background.
Public propertyInfoTextVerticalAlignment
Gets or sets the vertical alignment info text shown in the background.
Public propertySecondControl
Gets or sets an second additional control placed inside the text box.
Public propertySecondControlPosition
Gets or sets a value which indicates where the additional SecondControl has to be placed in the text box.
Public propertySeparator
Gets or sets a value which will be used as a separator if multiple elements can be dropped to the textbox. See AllowedDropType.
Top
Examples

XAML
<WPFToolkit:EnhancedTextBox InfoText="Required" AllowedDropType="Files" Separator=";" />
See Also

Reference