<xctk:WatermarkTextBox><xctk:WatermarkTextBox.Watermark><StackPanelOrientation="Horizontal"><ImageSource="Contact16.png"Stretch="None"/><TextBlockText="Enter First Name"Margin="4,0,0,0"/></StackPanel></xctk:WatermarkTextBox.Watermark></xctk:WatermarkTextBox>
The following example shows how to create a WatermarkTextBox that uses a custom WatermarkTemplate.
<xctk:WatermarkTextBoxWatermark="Enter First Name"><xctk:WatermarkTextBox.WatermarkTemplate><DataTemplate><BorderBorderBrush="Green"BorderThickness="1"><ContentControlContent="{Binding}"Foreground="DarkRed"FontWeight="Bold"Focusable="False"/></Border></DataTemplate></xctk:WatermarkTextBox.WatermarkTemplate></xctk:WatermarkTextBox>
Gets or sets a value indicating if the focus can navigate in the appropriate flow direction (e.g., from one cell to another when a cell is being edited) when the cursor is at the beginning or end of the auto-select text box. (Inherited from Xceed.Wpf.Toolkit.AutoSelectTextBox)
Invoked when an unhandled PreviewGotKeyboardFocus attached event reaches this element in its route. (Inherited from Xceed.Wpf.Toolkit.AutoSelectTextBox)
Invoked when an unhandled PreviewMouseLeftButtonDown routed event reaches an element of this class in its route. (Inherited from Xceed.Wpf.Toolkit.AutoSelectTextBox)
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2