Show / Hide Table of Contents

Class WatermarkTextBox

A TextBox with Watermark

Inheritance
object
DispatcherObject
DependencyObject
Visual
UIElement
FrameworkElement
Control
TextBoxBase
TextBox
WatermarkTextBox
EditableTextBlock
PathSelectionBox
Implements
IAnimatable
ISupportInitialize
IFrameworkInputElement
IInputElement
IQueryAmbient
IAddChild
INotifyPropertyChanged
TextBox.CharacterCasingProperty
TextBox.MaxLengthProperty
TextBox.MaxLinesProperty
TextBox.MinLinesProperty
TextBox.TextAlignmentProperty
TextBox.TextDecorationsProperty
TextBox.TextProperty
TextBox.TextWrappingProperty
TextBox.Clear()
TextBox.GetCharacterIndexFromLineIndex(int)
TextBox.GetCharacterIndexFromPoint(Point, bool)
TextBox.GetFirstVisibleLineIndex()
TextBox.GetLastVisibleLineIndex()
TextBox.GetLineIndexFromCharacterIndex(int)
TextBox.GetLineLength(int)
TextBox.GetLineText(int)
TextBox.GetNextSpellingErrorCharacterIndex(int, LogicalDirection)
TextBox.GetRectFromCharacterIndex(int)
TextBox.GetRectFromCharacterIndex(int, bool)
TextBox.GetSpellingError(int)
TextBox.GetSpellingErrorLength(int)
TextBox.GetSpellingErrorStart(int)
TextBox.MeasureOverride(Size)
TextBox.OnCreateAutomationPeer()
TextBox.OnPropertyChanged(DependencyPropertyChangedEventArgs)
TextBox.ScrollToLine(int)
TextBox.Select(int, int)
TextBox.CaretIndex
TextBox.CharacterCasing
TextBox.LineCount
TextBox.LogicalChildren
TextBox.MaxLength
TextBox.MaxLines
TextBox.MinLines
TextBox.SelectedText
TextBox.SelectionLength
TextBox.SelectionStart
TextBox.Text
TextBox.TextAlignment
TextBox.TextDecorations
TextBox.TextWrapping
TextBox.Typography
TextBoxBase.AcceptsReturnProperty
TextBoxBase.AcceptsTabProperty
TextBoxBase.AutoWordSelectionProperty
TextBoxBase.CaretBrushProperty
TextBoxBase.HorizontalScrollBarVisibilityProperty
TextBoxBase.IsInactiveSelectionHighlightEnabledProperty
TextBoxBase.IsReadOnlyCaretVisibleProperty
TextBoxBase.IsReadOnlyProperty
TextBoxBase.IsSelectionActiveProperty
TextBoxBase.IsUndoEnabledProperty
TextBoxBase.SelectionBrushProperty
TextBoxBase.SelectionChangedEvent
TextBoxBase.SelectionOpacityProperty
TextBoxBase.SelectionTextBrushProperty
TextBoxBase.TextChangedEvent
TextBoxBase.UndoLimitProperty
TextBoxBase.VerticalScrollBarVisibilityProperty
TextBoxBase.AppendText(string)
TextBoxBase.BeginChange()
TextBoxBase.Copy()
TextBoxBase.Cut()
TextBoxBase.DeclareChangeBlock()
TextBoxBase.EndChange()
TextBoxBase.LineDown()
TextBoxBase.LineLeft()
TextBoxBase.LineRight()
TextBoxBase.LineUp()
TextBoxBase.LockCurrentUndoUnit()
TextBoxBase.OnContextMenuOpening(ContextMenuEventArgs)
TextBoxBase.OnDragEnter(DragEventArgs)
TextBoxBase.OnDragLeave(DragEventArgs)
TextBoxBase.OnDragOver(DragEventArgs)
TextBoxBase.OnDrop(DragEventArgs)
TextBoxBase.OnGiveFeedback(GiveFeedbackEventArgs)
TextBoxBase.OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)
TextBoxBase.OnKeyDown(KeyEventArgs)
TextBoxBase.OnKeyUp(KeyEventArgs)
TextBoxBase.OnLostKeyboardFocus(KeyboardFocusChangedEventArgs)
TextBoxBase.OnMouseDown(MouseButtonEventArgs)
TextBoxBase.OnMouseMove(MouseEventArgs)
TextBoxBase.OnMouseUp(MouseButtonEventArgs)
TextBoxBase.OnMouseWheel(MouseWheelEventArgs)
TextBoxBase.OnPreviewKeyDown(KeyEventArgs)
TextBoxBase.OnQueryContinueDrag(QueryContinueDragEventArgs)
TextBoxBase.OnQueryCursor(QueryCursorEventArgs)
TextBoxBase.OnSelectionChanged(RoutedEventArgs)
TextBoxBase.OnTemplateChanged(ControlTemplate, ControlTemplate)
TextBoxBase.OnTextInput(TextCompositionEventArgs)
TextBoxBase.PageDown()
TextBoxBase.PageLeft()
TextBoxBase.PageRight()
TextBoxBase.PageUp()
TextBoxBase.Paste()
TextBoxBase.Redo()
TextBoxBase.ScrollToEnd()
TextBoxBase.ScrollToHome()
TextBoxBase.ScrollToHorizontalOffset(double)
TextBoxBase.ScrollToVerticalOffset(double)
TextBoxBase.SelectAll()
TextBoxBase.Undo()
TextBoxBase.AcceptsReturn
TextBoxBase.AcceptsTab
TextBoxBase.AutoWordSelection
TextBoxBase.CanRedo
TextBoxBase.CanUndo
TextBoxBase.CaretBrush
TextBoxBase.ExtentHeight
TextBoxBase.ExtentWidth
TextBoxBase.HorizontalOffset
TextBoxBase.HorizontalScrollBarVisibility
TextBoxBase.IsInactiveSelectionHighlightEnabled
TextBoxBase.IsReadOnly
TextBoxBase.IsReadOnlyCaretVisible
TextBoxBase.IsSelectionActive
TextBoxBase.IsUndoEnabled
TextBoxBase.SelectionBrush
TextBoxBase.SelectionOpacity
TextBoxBase.SelectionTextBrush
TextBoxBase.SpellCheck
TextBoxBase.UndoLimit
TextBoxBase.VerticalOffset
TextBoxBase.VerticalScrollBarVisibility
TextBoxBase.ViewportHeight
TextBoxBase.ViewportWidth
TextBoxBase.SelectionChanged
TextBoxBase.TextChanged
Control.BackgroundProperty
Control.BorderBrushProperty
Control.BorderThicknessProperty
Control.FontFamilyProperty
Control.FontSizeProperty
Control.FontStretchProperty
Control.FontStyleProperty
Control.FontWeightProperty
Control.ForegroundProperty
Control.HorizontalContentAlignmentProperty
Control.IsTabStopProperty
Control.MouseDoubleClickEvent
Control.PaddingProperty
Control.PreviewMouseDoubleClickEvent
Control.TabIndexProperty
Control.TemplateProperty
Control.VerticalContentAlignmentProperty
Control.ArrangeOverride(Size)
Control.OnMouseDoubleClick(MouseButtonEventArgs)
Control.OnPreviewMouseDoubleClick(MouseButtonEventArgs)
Control.ToString()
Control.Background
Control.BorderBrush
Control.BorderThickness
Control.FontFamily
Control.FontSize
Control.FontStretch
Control.FontStyle
Control.FontWeight
Control.Foreground
Control.HandlesScrolling
Control.HorizontalContentAlignment
Control.IsTabStop
Control.Padding
Control.TabIndex
Control.Template
Control.VerticalContentAlignment
Control.MouseDoubleClick
Control.PreviewMouseDoubleClick
FrameworkElement.ActualHeightProperty
FrameworkElement.ActualWidthProperty
FrameworkElement.BindingGroupProperty
FrameworkElement.ContextMenuClosingEvent
FrameworkElement.ContextMenuOpeningEvent
FrameworkElement.ContextMenuProperty
FrameworkElement.CursorProperty
FrameworkElement.DataContextProperty
FrameworkElement.DefaultStyleKeyProperty
FrameworkElement.FlowDirectionProperty
FrameworkElement.FocusVisualStyleProperty
FrameworkElement.ForceCursorProperty
FrameworkElement.HeightProperty
FrameworkElement.HorizontalAlignmentProperty
FrameworkElement.InputScopeProperty
FrameworkElement.LanguageProperty
FrameworkElement.LayoutTransformProperty
FrameworkElement.LoadedEvent
FrameworkElement.MarginProperty
FrameworkElement.MaxHeightProperty
FrameworkElement.MaxWidthProperty
FrameworkElement.MinHeightProperty
FrameworkElement.MinWidthProperty
FrameworkElement.NameProperty
FrameworkElement.OverridesDefaultStyleProperty
FrameworkElement.RequestBringIntoViewEvent
FrameworkElement.SizeChangedEvent
FrameworkElement.StyleProperty
FrameworkElement.TagProperty
FrameworkElement.ToolTipClosingEvent
FrameworkElement.ToolTipOpeningEvent
FrameworkElement.ToolTipProperty
FrameworkElement.UnloadedEvent
FrameworkElement.UseLayoutRoundingProperty
FrameworkElement.VerticalAlignmentProperty
FrameworkElement.WidthProperty
FrameworkElement.AddLogicalChild(object)
FrameworkElement.ApplyTemplate()
FrameworkElement.ArrangeCore(Rect)
FrameworkElement.BeginInit()
FrameworkElement.BeginStoryboard(Storyboard)
FrameworkElement.BeginStoryboard(Storyboard, HandoffBehavior)
FrameworkElement.BeginStoryboard(Storyboard, HandoffBehavior, bool)
FrameworkElement.BringIntoView()
FrameworkElement.BringIntoView(Rect)
FrameworkElement.EndInit()
FrameworkElement.FindName(string)
FrameworkElement.FindResource(object)
FrameworkElement.GetBindingExpression(DependencyProperty)
FrameworkElement.GetFlowDirection(DependencyObject)
FrameworkElement.GetLayoutClip(Size)
FrameworkElement.GetTemplateChild(string)
FrameworkElement.GetUIParentCore()
FrameworkElement.GetVisualChild(int)
FrameworkElement.MeasureCore(Size)
FrameworkElement.MoveFocus(TraversalRequest)
FrameworkElement.OnContextMenuClosing(ContextMenuEventArgs)
FrameworkElement.OnInitialized(EventArgs)
FrameworkElement.OnRenderSizeChanged(SizeChangedInfo)
FrameworkElement.OnStyleChanged(Style, Style)
FrameworkElement.OnToolTipClosing(ToolTipEventArgs)
FrameworkElement.OnToolTipOpening(ToolTipEventArgs)
FrameworkElement.OnVisualParentChanged(DependencyObject)
FrameworkElement.ParentLayoutInvalidated(UIElement)
FrameworkElement.PredictFocus(FocusNavigationDirection)
FrameworkElement.RegisterName(string, object)
FrameworkElement.RemoveLogicalChild(object)
FrameworkElement.SetBinding(DependencyProperty, string)
FrameworkElement.SetBinding(DependencyProperty, BindingBase)
FrameworkElement.SetFlowDirection(DependencyObject, FlowDirection)
FrameworkElement.SetResourceReference(DependencyProperty, object)
FrameworkElement.TryFindResource(object)
FrameworkElement.UnregisterName(string)
FrameworkElement.UpdateDefaultStyle()
FrameworkElement.ActualHeight
FrameworkElement.ActualWidth
FrameworkElement.BindingGroup
FrameworkElement.ContextMenu
FrameworkElement.Cursor
FrameworkElement.DataContext
FrameworkElement.DefaultStyleKey
FrameworkElement.FlowDirection
FrameworkElement.FocusVisualStyle
FrameworkElement.ForceCursor
FrameworkElement.Height
FrameworkElement.HorizontalAlignment
FrameworkElement.InheritanceBehavior
FrameworkElement.InputScope
FrameworkElement.IsInitialized
FrameworkElement.IsLoaded
FrameworkElement.Language
FrameworkElement.LayoutTransform
FrameworkElement.Margin
FrameworkElement.MaxHeight
FrameworkElement.MaxWidth
FrameworkElement.MinHeight
FrameworkElement.MinWidth
FrameworkElement.Name
FrameworkElement.OverridesDefaultStyle
FrameworkElement.Parent
FrameworkElement.Resources
FrameworkElement.Style
FrameworkElement.Tag
FrameworkElement.TemplatedParent
FrameworkElement.ToolTip
FrameworkElement.Triggers
FrameworkElement.UseLayoutRounding
FrameworkElement.VerticalAlignment
FrameworkElement.VisualChildrenCount
FrameworkElement.Width
FrameworkElement.ContextMenuClosing
FrameworkElement.ContextMenuOpening
FrameworkElement.DataContextChanged
FrameworkElement.Initialized
FrameworkElement.Loaded
FrameworkElement.RequestBringIntoView
FrameworkElement.SizeChanged
FrameworkElement.SourceUpdated
FrameworkElement.TargetUpdated
FrameworkElement.ToolTipClosing
FrameworkElement.ToolTipOpening
FrameworkElement.Unloaded
UIElement.AllowDropProperty
UIElement.AreAnyTouchesCapturedProperty
UIElement.AreAnyTouchesCapturedWithinProperty
UIElement.AreAnyTouchesDirectlyOverProperty
UIElement.AreAnyTouchesOverProperty
UIElement.BitmapEffectInputProperty
UIElement.BitmapEffectProperty
UIElement.CacheModeProperty
UIElement.ClipProperty
UIElement.ClipToBoundsProperty
UIElement.DragEnterEvent
UIElement.DragLeaveEvent
UIElement.DragOverEvent
UIElement.DropEvent
UIElement.EffectProperty
UIElement.FocusableProperty
UIElement.GiveFeedbackEvent
UIElement.GotFocusEvent
UIElement.GotKeyboardFocusEvent
UIElement.GotMouseCaptureEvent
UIElement.GotStylusCaptureEvent
UIElement.GotTouchCaptureEvent
UIElement.IsEnabledProperty
UIElement.IsFocusedProperty
UIElement.IsHitTestVisibleProperty
UIElement.IsKeyboardFocusedProperty
UIElement.IsKeyboardFocusWithinProperty
UIElement.IsManipulationEnabledProperty
UIElement.IsMouseCapturedProperty
UIElement.IsMouseCaptureWithinProperty
UIElement.IsMouseDirectlyOverProperty
UIElement.IsMouseOverProperty
UIElement.IsStylusCapturedProperty
UIElement.IsStylusCaptureWithinProperty
UIElement.IsStylusDirectlyOverProperty
UIElement.IsStylusOverProperty
UIElement.IsVisibleProperty
UIElement.KeyDownEvent
UIElement.KeyUpEvent
UIElement.LostFocusEvent
UIElement.LostKeyboardFocusEvent
UIElement.LostMouseCaptureEvent
UIElement.LostStylusCaptureEvent
UIElement.LostTouchCaptureEvent
UIElement.ManipulationBoundaryFeedbackEvent
UIElement.ManipulationCompletedEvent
UIElement.ManipulationDeltaEvent
UIElement.ManipulationInertiaStartingEvent
UIElement.ManipulationStartedEvent
UIElement.ManipulationStartingEvent
UIElement.MouseDownEvent
UIElement.MouseEnterEvent
UIElement.MouseLeaveEvent
UIElement.MouseLeftButtonDownEvent
UIElement.MouseLeftButtonUpEvent
UIElement.MouseMoveEvent
UIElement.MouseRightButtonDownEvent
UIElement.MouseRightButtonUpEvent
UIElement.MouseUpEvent
UIElement.MouseWheelEvent
UIElement.OpacityMaskProperty
UIElement.OpacityProperty
UIElement.PreviewDragEnterEvent
UIElement.PreviewDragLeaveEvent
UIElement.PreviewDragOverEvent
UIElement.PreviewDropEvent
UIElement.PreviewGiveFeedbackEvent
UIElement.PreviewGotKeyboardFocusEvent
UIElement.PreviewKeyDownEvent
UIElement.PreviewKeyUpEvent
UIElement.PreviewLostKeyboardFocusEvent
UIElement.PreviewMouseDownEvent
UIElement.PreviewMouseLeftButtonDownEvent
UIElement.PreviewMouseLeftButtonUpEvent
UIElement.PreviewMouseMoveEvent
UIElement.PreviewMouseRightButtonDownEvent
UIElement.PreviewMouseRightButtonUpEvent
UIElement.PreviewMouseUpEvent
UIElement.PreviewMouseWheelEvent
UIElement.PreviewQueryContinueDragEvent
UIElement.PreviewStylusButtonDownEvent
UIElement.PreviewStylusButtonUpEvent
UIElement.PreviewStylusDownEvent
UIElement.PreviewStylusInAirMoveEvent
UIElement.PreviewStylusInRangeEvent
UIElement.PreviewStylusMoveEvent
UIElement.PreviewStylusOutOfRangeEvent
UIElement.PreviewStylusSystemGestureEvent
UIElement.PreviewStylusUpEvent
UIElement.PreviewTextInputEvent
UIElement.PreviewTouchDownEvent
UIElement.PreviewTouchMoveEvent
UIElement.PreviewTouchUpEvent
UIElement.QueryContinueDragEvent
UIElement.QueryCursorEvent
UIElement.RenderTransformOriginProperty
UIElement.RenderTransformProperty
UIElement.SnapsToDevicePixelsProperty
UIElement.StylusButtonDownEvent
UIElement.StylusButtonUpEvent
UIElement.StylusDownEvent
UIElement.StylusEnterEvent
UIElement.StylusInAirMoveEvent
UIElement.StylusInRangeEvent
UIElement.StylusLeaveEvent
UIElement.StylusMoveEvent
UIElement.StylusOutOfRangeEvent
UIElement.StylusSystemGestureEvent
UIElement.StylusUpEvent
UIElement.TextInputEvent
UIElement.TouchDownEvent
UIElement.TouchEnterEvent
UIElement.TouchLeaveEvent
UIElement.TouchMoveEvent
UIElement.TouchUpEvent
UIElement.UidProperty
UIElement.VisibilityProperty
UIElement.AddHandler(RoutedEvent, Delegate)
UIElement.AddHandler(RoutedEvent, Delegate, bool)
UIElement.AddToEventRoute(EventRoute, RoutedEventArgs)
UIElement.ApplyAnimationClock(DependencyProperty, AnimationClock)
UIElement.ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior)
UIElement.Arrange(Rect)
UIElement.BeginAnimation(DependencyProperty, AnimationTimeline)
UIElement.BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior)
UIElement.CaptureMouse()
UIElement.CaptureStylus()
UIElement.CaptureTouch(TouchDevice)
UIElement.Focus()
UIElement.GetAnimationBaseValue(DependencyProperty)
UIElement.HitTestCore(GeometryHitTestParameters)
UIElement.HitTestCore(PointHitTestParameters)
UIElement.InputHitTest(Point)
UIElement.InvalidateArrange()
UIElement.InvalidateMeasure()
UIElement.InvalidateVisual()
UIElement.Measure(Size)
UIElement.OnAccessKey(AccessKeyEventArgs)
UIElement.OnChildDesiredSizeChanged(UIElement)
UIElement.OnGotMouseCapture(MouseEventArgs)
UIElement.OnGotStylusCapture(StylusEventArgs)
UIElement.OnGotTouchCapture(TouchEventArgs)
UIElement.OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs)
UIElement.OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)
UIElement.OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs)
UIElement.OnIsMouseCaptureWithinChanged(DependencyPropertyChangedEventArgs)
UIElement.OnIsMouseDirectlyOverChanged(DependencyPropertyChangedEventArgs)
UIElement.OnIsStylusCapturedChanged(DependencyPropertyChangedEventArgs)
UIElement.OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs)
UIElement.OnIsStylusDirectlyOverChanged(DependencyPropertyChangedEventArgs)
UIElement.OnLostMouseCapture(MouseEventArgs)
UIElement.OnLostStylusCapture(StylusEventArgs)
UIElement.OnLostTouchCapture(TouchEventArgs)
UIElement.OnManipulationBoundaryFeedback(ManipulationBoundaryFeedbackEventArgs)
UIElement.OnManipulationCompleted(ManipulationCompletedEventArgs)
UIElement.OnManipulationDelta(ManipulationDeltaEventArgs)
UIElement.OnManipulationInertiaStarting(ManipulationInertiaStartingEventArgs)
UIElement.OnManipulationStarted(ManipulationStartedEventArgs)
UIElement.OnManipulationStarting(ManipulationStartingEventArgs)
UIElement.OnMouseEnter(MouseEventArgs)
UIElement.OnMouseLeave(MouseEventArgs)
UIElement.OnMouseLeftButtonDown(MouseButtonEventArgs)
UIElement.OnMouseLeftButtonUp(MouseButtonEventArgs)
UIElement.OnMouseRightButtonDown(MouseButtonEventArgs)
UIElement.OnMouseRightButtonUp(MouseButtonEventArgs)
UIElement.OnPreviewDragEnter(DragEventArgs)
UIElement.OnPreviewDragLeave(DragEventArgs)
UIElement.OnPreviewDragOver(DragEventArgs)
UIElement.OnPreviewDrop(DragEventArgs)
UIElement.OnPreviewGiveFeedback(GiveFeedbackEventArgs)
UIElement.OnPreviewGotKeyboardFocus(KeyboardFocusChangedEventArgs)
UIElement.OnPreviewKeyUp(KeyEventArgs)
UIElement.OnPreviewLostKeyboardFocus(KeyboardFocusChangedEventArgs)
UIElement.OnPreviewMouseDown(MouseButtonEventArgs)
UIElement.OnPreviewMouseLeftButtonDown(MouseButtonEventArgs)
UIElement.OnPreviewMouseLeftButtonUp(MouseButtonEventArgs)
UIElement.OnPreviewMouseMove(MouseEventArgs)
UIElement.OnPreviewMouseRightButtonDown(MouseButtonEventArgs)
UIElement.OnPreviewMouseRightButtonUp(MouseButtonEventArgs)
UIElement.OnPreviewMouseUp(MouseButtonEventArgs)
UIElement.OnPreviewMouseWheel(MouseWheelEventArgs)
UIElement.OnPreviewQueryContinueDrag(QueryContinueDragEventArgs)
UIElement.OnPreviewStylusButtonDown(StylusButtonEventArgs)
UIElement.OnPreviewStylusButtonUp(StylusButtonEventArgs)
UIElement.OnPreviewStylusDown(StylusDownEventArgs)
UIElement.OnPreviewStylusInAirMove(StylusEventArgs)
UIElement.OnPreviewStylusInRange(StylusEventArgs)
UIElement.OnPreviewStylusMove(StylusEventArgs)
UIElement.OnPreviewStylusOutOfRange(StylusEventArgs)
UIElement.OnPreviewStylusSystemGesture(StylusSystemGestureEventArgs)
UIElement.OnPreviewStylusUp(StylusEventArgs)
UIElement.OnPreviewTextInput(TextCompositionEventArgs)
UIElement.OnPreviewTouchDown(TouchEventArgs)
UIElement.OnPreviewTouchMove(TouchEventArgs)
UIElement.OnPreviewTouchUp(TouchEventArgs)
UIElement.OnRender(DrawingContext)
UIElement.OnStylusButtonDown(StylusButtonEventArgs)
UIElement.OnStylusButtonUp(StylusButtonEventArgs)
UIElement.OnStylusDown(StylusDownEventArgs)
UIElement.OnStylusEnter(StylusEventArgs)
UIElement.OnStylusInAirMove(StylusEventArgs)
UIElement.OnStylusInRange(StylusEventArgs)
UIElement.OnStylusLeave(StylusEventArgs)
UIElement.OnStylusMove(StylusEventArgs)
UIElement.OnStylusOutOfRange(StylusEventArgs)
UIElement.OnStylusSystemGesture(StylusSystemGestureEventArgs)
UIElement.OnStylusUp(StylusEventArgs)
UIElement.OnTouchDown(TouchEventArgs)
UIElement.OnTouchEnter(TouchEventArgs)
UIElement.OnTouchLeave(TouchEventArgs)
UIElement.OnTouchMove(TouchEventArgs)
UIElement.OnTouchUp(TouchEventArgs)
UIElement.RaiseEvent(RoutedEventArgs)
UIElement.ReleaseAllTouchCaptures()
UIElement.ReleaseMouseCapture()
UIElement.ReleaseStylusCapture()
UIElement.ReleaseTouchCapture(TouchDevice)
UIElement.RemoveHandler(RoutedEvent, Delegate)
UIElement.TranslatePoint(Point, UIElement)
UIElement.UpdateLayout()
UIElement.AllowDrop
UIElement.AreAnyTouchesCaptured
UIElement.AreAnyTouchesCapturedWithin
UIElement.AreAnyTouchesDirectlyOver
UIElement.AreAnyTouchesOver
UIElement.BitmapEffect
UIElement.BitmapEffectInput
UIElement.CacheMode
UIElement.Clip
UIElement.ClipToBounds
UIElement.CommandBindings
UIElement.DesiredSize
UIElement.Effect
UIElement.Focusable
UIElement.HasAnimatedProperties
UIElement.HasEffectiveKeyboardFocus
UIElement.InputBindings
UIElement.IsArrangeValid
UIElement.IsEnabled
UIElement.IsEnabledCore
UIElement.IsFocused
UIElement.IsHitTestVisible
UIElement.IsInputMethodEnabled
UIElement.IsKeyboardFocused
UIElement.IsKeyboardFocusWithin
UIElement.IsManipulationEnabled
UIElement.IsMeasureValid
UIElement.IsMouseCaptured
UIElement.IsMouseCaptureWithin
UIElement.IsMouseDirectlyOver
UIElement.IsMouseOver
UIElement.IsStylusCaptured
UIElement.IsStylusCaptureWithin
UIElement.IsStylusDirectlyOver
UIElement.IsStylusOver
UIElement.IsVisible
UIElement.Opacity
UIElement.OpacityMask
UIElement.PersistId
UIElement.RenderSize
UIElement.RenderTransform
UIElement.RenderTransformOrigin
UIElement.SnapsToDevicePixels
UIElement.StylusPlugIns
UIElement.TouchesCaptured
UIElement.TouchesCapturedWithin
UIElement.TouchesDirectlyOver
UIElement.TouchesOver
UIElement.Uid
UIElement.Visibility
UIElement.DragEnter
UIElement.DragLeave
UIElement.DragOver
UIElement.Drop
UIElement.FocusableChanged
UIElement.GiveFeedback
UIElement.GotFocus
UIElement.GotKeyboardFocus
UIElement.GotMouseCapture
UIElement.GotStylusCapture
UIElement.GotTouchCapture
UIElement.IsEnabledChanged
UIElement.IsHitTestVisibleChanged
UIElement.IsKeyboardFocusedChanged
UIElement.IsKeyboardFocusWithinChanged
UIElement.IsMouseCapturedChanged
UIElement.IsMouseCaptureWithinChanged
UIElement.IsMouseDirectlyOverChanged
UIElement.IsStylusCapturedChanged
UIElement.IsStylusCaptureWithinChanged
UIElement.IsStylusDirectlyOverChanged
UIElement.IsVisibleChanged
UIElement.KeyDown
UIElement.KeyUp
UIElement.LayoutUpdated
UIElement.LostFocus
UIElement.LostKeyboardFocus
UIElement.LostMouseCapture
UIElement.LostStylusCapture
UIElement.LostTouchCapture
UIElement.ManipulationBoundaryFeedback
UIElement.ManipulationCompleted
UIElement.ManipulationDelta
UIElement.ManipulationInertiaStarting
UIElement.ManipulationStarted
UIElement.ManipulationStarting
UIElement.MouseDown
UIElement.MouseEnter
UIElement.MouseLeave
UIElement.MouseLeftButtonDown
UIElement.MouseLeftButtonUp
UIElement.MouseMove
UIElement.MouseRightButtonDown
UIElement.MouseRightButtonUp
UIElement.MouseUp
UIElement.MouseWheel
UIElement.PreviewDragEnter
UIElement.PreviewDragLeave
UIElement.PreviewDragOver
UIElement.PreviewDrop
UIElement.PreviewGiveFeedback
UIElement.PreviewGotKeyboardFocus
UIElement.PreviewKeyDown
UIElement.PreviewKeyUp
UIElement.PreviewLostKeyboardFocus
UIElement.PreviewMouseDown
UIElement.PreviewMouseLeftButtonDown
UIElement.PreviewMouseLeftButtonUp
UIElement.PreviewMouseMove
UIElement.PreviewMouseRightButtonDown
UIElement.PreviewMouseRightButtonUp
UIElement.PreviewMouseUp
UIElement.PreviewMouseWheel
UIElement.PreviewQueryContinueDrag
UIElement.PreviewStylusButtonDown
UIElement.PreviewStylusButtonUp
UIElement.PreviewStylusDown
UIElement.PreviewStylusInAirMove
UIElement.PreviewStylusInRange
UIElement.PreviewStylusMove
UIElement.PreviewStylusOutOfRange
UIElement.PreviewStylusSystemGesture
UIElement.PreviewStylusUp
UIElement.PreviewTextInput
UIElement.PreviewTouchDown
UIElement.PreviewTouchMove
UIElement.PreviewTouchUp
UIElement.QueryContinueDrag
UIElement.QueryCursor
UIElement.StylusButtonDown
UIElement.StylusButtonUp
UIElement.StylusDown
UIElement.StylusEnter
UIElement.StylusInAirMove
UIElement.StylusInRange
UIElement.StylusLeave
UIElement.StylusMove
UIElement.StylusOutOfRange
UIElement.StylusSystemGesture
UIElement.StylusUp
UIElement.TextInput
UIElement.TouchDown
UIElement.TouchEnter
UIElement.TouchLeave
UIElement.TouchMove
UIElement.TouchUp
Visual.AddVisualChild(Visual)
Visual.FindCommonVisualAncestor(DependencyObject)
Visual.IsAncestorOf(DependencyObject)
Visual.IsDescendantOf(DependencyObject)
Visual.OnDpiChanged(DpiScale, DpiScale)
Visual.OnVisualChildrenChanged(DependencyObject, DependencyObject)
Visual.PointFromScreen(Point)
Visual.PointToScreen(Point)
Visual.RemoveVisualChild(Visual)
Visual.TransformToAncestor(Visual3D)
Visual.TransformToAncestor(Visual)
Visual.TransformToDescendant(Visual)
Visual.TransformToVisual(Visual)
Visual.VisualBitmapEffect
Visual.VisualBitmapEffectInput
Visual.VisualBitmapScalingMode
Visual.VisualCacheMode
Visual.VisualClearTypeHint
Visual.VisualClip
Visual.VisualEdgeMode
Visual.VisualEffect
Visual.VisualOffset
Visual.VisualOpacity
Visual.VisualOpacityMask
Visual.VisualParent
Visual.VisualScrollableAreaClip
Visual.VisualTextHintingMode
Visual.VisualTextRenderingMode
Visual.VisualTransform
Visual.VisualXSnappingGuidelines
Visual.VisualYSnappingGuidelines
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Equals(object)
DependencyObject.GetHashCode()
DependencyObject.GetLocalValueEnumerator()
DependencyObject.GetValue(DependencyProperty)
DependencyObject.InvalidateProperty(DependencyProperty)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, object)
DependencyObject.SetValue(DependencyProperty, object)
DependencyObject.SetValue(DependencyPropertyKey, object)
DependencyObject.ShouldSerializeProperty(DependencyProperty)
DependencyObject.DependencyObjectType
DependencyObject.IsSealed
DispatcherObject.Dispatcher
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public class WatermarkTextBox : TextBox, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild, INotifyPropertyChanged

Constructors

View Source

WatermarkTextBox()

Default constructor

Declaration
public WatermarkTextBox()

Fields

View Source

MultiLineProperty

Defines the dependency property for the MultiLine property.

Declaration
public static readonly DependencyProperty MultiLineProperty
Field Value
Type Description
DependencyProperty
View Source

ResetButtonStyleProperty

Defines the dependency property for the ResetButtonStyle property.

Declaration
public static readonly DependencyProperty ResetButtonStyleProperty
Field Value
Type Description
DependencyProperty
View Source

ShowResetButtonProperty

Defines the dependency property for the ShowResetButton property.

Declaration
public static readonly DependencyProperty ShowResetButtonProperty
Field Value
Type Description
DependencyProperty
View Source

TextLeftOffsetProperty

Defines the dependency property for the TextLeftOffset property.

Declaration
public static readonly DependencyProperty TextLeftOffsetProperty
Field Value
Type Description
DependencyProperty
View Source

TextToUnitOffsetProperty

Defines the dependency property for the TextToUnitOffset property.

Declaration
public static readonly DependencyProperty TextToUnitOffsetProperty
Field Value
Type Description
DependencyProperty
View Source

UnitProperty

Defines the dependency property for the Unit property.

Declaration
public static readonly DependencyProperty UnitProperty
Field Value
Type Description
DependencyProperty
View Source

WatermarkForegroundProperty

Defines the dependency property for the WatermarkForeground property.

Declaration
public static readonly DependencyProperty WatermarkForegroundProperty
Field Value
Type Description
DependencyProperty
View Source

WatermarkProperty

Defines the dependency property for the Watermark property.

Declaration
public static readonly DependencyProperty WatermarkProperty
Field Value
Type Description
DependencyProperty

Properties

View Source

HasContent

Indicates whether the TextBox has content

Declaration
public bool HasContent { get; }
Property Value
Type Description
bool
View Source

MultiLine

Indicates whether the TextBox is multiline

Declaration
public bool MultiLine { get; set; }
Property Value
Type Description
bool
View Source

ResetButtonStyle

Gets or sets the Style of the ResetButton

Declaration
public Style ResetButtonStyle { get; set; }
Property Value
Type Description
Style
View Source

ResetButtonVisibility

Gets or sets the Visibility of the ResetButton

Declaration
public Visibility ResetButtonVisibility { get; set; }
Property Value
Type Description
Visibility
View Source

ResetCommand

Set Text of TextBox to string.Empty

Declaration
public ICommand ResetCommand { get; }
Property Value
Type Description
ICommand
View Source

ScrollViewerMargin

Gets the Margin of the ScrollViewer

Declaration
public Thickness ScrollViewerMargin { get; }
Property Value
Type Description
Thickness
View Source

ShowResetButton

Indicates wther the ResetButton is shown

Declaration
public bool ShowResetButton { get; set; }
Property Value
Type Description
bool
View Source

TextLeftOffset

Gets or sets the left offset of the ScrollViewer witch contains the Text and the left offset of the SearchTextBlock

Declaration
public int TextLeftOffset { get; set; }
Property Value
Type Description
int
View Source

TextToUnitOffset

Gets or sets the space between the text an the unit

Declaration
public double TextToUnitOffset { get; set; }
Property Value
Type Description
double
View Source

Unit

Gets or sets the Text for Unit

Declaration
public string Unit { get; set; }
Property Value
Type Description
string
View Source

UnitMargin

Gets the Margin for the Unit TextBlock

Declaration
public Thickness UnitMargin { get; }
Property Value
Type Description
Thickness
View Source

Watermark

Gets or sets the watermark text

Declaration
public string Watermark { get; set; }
Property Value
Type Description
string
View Source

WatermarkForeground

Gets or sets the watermark foreground

Declaration
public Brush WatermarkForeground { get; set; }
Property Value
Type Description
Brush
View Source

WatermarkTextMargin

Gets the MArgin of the SearchTextBlock

Declaration
public Thickness WatermarkTextMargin { get; }
Property Value
Type Description
Thickness
View Source

WatermarkVisibility

Gets the visibility of the watermark

Declaration
public Visibility WatermarkVisibility { get; set; }
Property Value
Type Description
Visibility

Methods

View Source

OnApplyTemplate()

Called, when Template loaded

Declaration
public override void OnApplyTemplate()
Overrides
TextBoxBase.OnApplyTemplate()
View Source

OnGotFocus(RoutedEventArgs)

Invoked whenever an unhandled GotFocus event reaches this element in its route.

Declaration
protected override void OnGotFocus(RoutedEventArgs e)
Parameters
Type Name Description
RoutedEventArgs e

The RoutedEventArgs that contains the event data.

Overrides
FrameworkElement.OnGotFocus(RoutedEventArgs)
View Source

OnLostFocus(RoutedEventArgs)

Raises the LostFocus event (using the provided arguments).

Declaration
protected override void OnLostFocus(RoutedEventArgs e)
Parameters
Type Name Description
RoutedEventArgs e

Provides data about the event.

Overrides
TextBoxBase.OnLostFocus(RoutedEventArgs)
View Source

OnPropertyChanged(string)

Raises the PropertChaned event with string as parameter

Declaration
protected virtual void OnPropertyChanged(string propertyName)
Parameters
Type Name Description
string propertyName

The name of the property

View Source

OnPropertyChanged<T>(Expression<Func<T>>)

Raises the PropertChaned event with Expression of(T) as parameter

Declaration
protected virtual void OnPropertyChanged<T>(Expression<Func<T>> expression)
Parameters
Type Name Description
Expression<Func<T>> expression
Type Parameters
Name Description
T
View Source

OnTextChanged(TextChangedEventArgs)

Is called when the content in this editing control changes. The main job is to trigger adjusting the Unit property.

Declaration
protected override void OnTextChanged(TextChangedEventArgs e)
Parameters
Type Name Description
TextChangedEventArgs e

TextChangedEventArgs

Overrides
TextBoxBase.OnTextChanged(TextChangedEventArgs)

Events

View Source

PropertyChanged

Occures when a property value changes

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
PropertyChangedEventHandler

Implements

IAnimatable
ISupportInitialize
IFrameworkInputElement
IInputElement
IQueryAmbient
IAddChild
INotifyPropertyChanged

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
DependencyObjectExtensions.XamlClone<T>(T)
NotifyPropertyChangedExtensions.GetPropertyName<T>(INotifyPropertyChanged, Expression<Func<T>>)
NotifyPropertyChangedExtensions.RaisePropertyChanged(INotifyPropertyChanged, string)
NotifyPropertyChangedExtensions.RaisePropertyChanged<T>(INotifyPropertyChanged, Expression<Func<T>>)
PropertyHelper.RaisePropertyChanged<T>(INotifyPropertyChanged, Expression<Func<T>>, PropertyChangedEventHandler)
DependencyObjectExtensions.FindAncestor<T>(DependencyObject)
DependencyObjectExtensions.FindFirstChildByType<T>(DependencyObject)
DependencyObjectExtensions.FindLogicalAncestor<T>(DependencyObject)
DependencyObjectExtensions.GetChildrenByType<T>(DependencyObject)
DependencyObjectExtensions.GetContainer(DependencyObject)
DependencyObjectExtensions.SetContainer(DependencyObject, CompositionContainer)
FrameworkElementExtensions.FindChildByName<T>(FrameworkElement, string)
  • View Source
Back to top Generated by DocFX