Show / Hide Table of Contents

Class SearchBox

A box providing a dropdown for search scopes and an search text.

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

You can use UpdateSourceTrigger to define how changes to SearchText should be triggered. The default is System.Windows.Data.UpdateSourceTrigger. This means changes are triggered as the user types. This behaviour corresponds to a live search showing results as the user types. The trigger of the changes are delayed by UpdateDelay in this case. UpdateDelay is ignored on all other cases. Setting the UpdateSourceTrigger to explicit, means that the SearchText is updated when pressing the Return key.

You can define different search scopes that can be selected by the user with a dropdown.

By default the Reset button of the control will only be visible when the SearchText is filled. The visibility can be explicitly set with IsResetButtonVisible. If IsResetButtonVisible is set to null. The property will reflect the current state of the reset button as it is automatically shown and hidden by the control.

Examples

The following example binds to a simple viewmodel class that provides search scopes as a list of strings. The strings will be shown in the drop down. The watermark in the searchbox will show the current selected search scope formated by WatermarkFormat.

        <controls:SearchBox SearchText="{Binding SearchText}"
                        SearchScopes="{Binding SearchScopes}"
                        WatermarkFormat="Search in {0}"
                        SelectedSearchScope="{Binding SelectedSearchScope}" />

The viewmodel for this example looks like this:

public class MyClass1 : ObservableObject
{
    private String searchText;
    private String selectedSearchScope;

    public MyClass1()
    {
        SearchScopes = new[]
        {
            "Help Index",
            "Topics"
        };
    }

    public IEnumerable<String> SearchScopes { get; }

    public String SearchText
    {
        get => this.searchText;
        set
        {
            SetValue(nameof(SearchText), ref this.searchText, value);
            TriggerSearch();
        }
    }

    public String SelectedSearchScope
    {
        get => this.selectedSearchScope;
        set
        {
            SetValue(nameof(SelectedSearchScope), ref this.selectedSearchScope, value);
            TriggerSearch();
        }
    }

    private void TriggerSearch()
    {
        switch (SelectedSearchScope)
        {
            case "Index":
                // search in index
                break;
            case "Topics":
                // search in topics
                break;
        }
    }
}

The following example binds to a simple viewmodel class that provides search scopes as a list of objects. The Caption-property of these search scope objects is used as display text in the dropdown and in the watermark of the search box.

            <controls:SearchBox SearchText="{Binding SearchText}"
                            SearchScopes="{Binding SearchScopes}"
                            WatermarkFormat="Search in {0}"
                            SearchScopeDisplayMemberPath="Caption"
                            SelectedSearchScope="{Binding SelectedSearchScope}" />

The viewmodel for this example looks like this:

public class MyClass2 : ObservableObject
{
    private String searchText;
    private SearchScope selectedSearchScope;

    public MyClass2()
    {
        SearchScopes = new[]
        {
            new SearchScope {Caption = "Help Index", Value = "index"},
            new SearchScope {Caption = "Topics", Value = "topics"}
        };
        ResetCommand = new DelegateCommand(OnResetSearch);
    }

    public ICommand ResetCommand { get; }

    public IEnumerable<SearchScope> SearchScopes { get; }

    public String SearchText
    {
        get => this.searchText;
        set
        {
            SetValue(nameof(SearchText), ref this.searchText, value);
            TriggerSearch();
        }
    }

    public SearchScope SelectedSearchScope
    {
        get => this.selectedSearchScope;
        set
        {
            SetValue(nameof(SelectedSearchScope), ref this.selectedSearchScope, value);
            TriggerSearch();
        }
    }

    private void OnResetSearch()
    {
        // search string is already reset here.
        // if a reset does mean more than setting search string to empty do it here.
    }

    private void TriggerSearch()
    {
        switch (SelectedSearchScope.Value)
        {
            case "index":
                // search in index
                break;
            case "topics":
                // search in topics
                break;
        }
    }

    public class SearchScope
    {
        public String Caption { get; set; }
        public String Value { get; set; }
    }
}

The following example additionally uses the Reset event to execute some additional action when the user clicks the reset button. The reset button will be always visible.

            <controls:SearchBox SearchText="{Binding SearchText}"
                            SearchScopes="{Binding SearchScopes}"
                            SearchScopeDisplayMemberPath="Caption"
                            SelectedSearchScope="{Binding SelectedSearchScope}"
                            IsResetButtonVisible="True">
            <controls:Interaction.Pipes>
                <controls:EventPipe EventName="Reset"
                                    Command="{Binding ResetCommand}" />
            </controls:Interaction.Pipes>
        </controls:SearchBox>

Constructors

View Source

SearchBox()

Initializes a new instance of the SearchBox class.

Declaration
public SearchBox()

Fields

View Source

IsResetButtonVisibleProperty

Identifies the System.Windows.DependencyProperty for IsResetButtonVisible.

Declaration
public static readonly DependencyProperty IsResetButtonVisibleProperty
Field Value
Type Description
System.Windows.DependencyProperty
View Source

KeyDownCommandProperty

Identifies the System.Windows.DependencyProperty for KeyDownCommand.

Declaration
public static readonly DependencyProperty KeyDownCommandProperty
Field Value
Type Description
System.Windows.DependencyProperty
View Source

KeyDownCommandPropertyKey

Identifies the System.Windows.DependencyPropertyKey for KeyDownCommand.

Declaration
protected static readonly DependencyPropertyKey KeyDownCommandPropertyKey
Field Value
Type Description
System.Windows.DependencyPropertyKey
View Source

ResetCommandProperty

Identifies the System.Windows.DependencyProperty for ResetCommand.

Declaration
public static readonly DependencyProperty ResetCommandProperty
Field Value
Type Description
System.Windows.DependencyProperty
View Source

ResetEvent

Identifies the System.Windows.RoutedEvent for Reset.

Declaration
public static readonly RoutedEvent ResetEvent
Field Value
Type Description
System.Windows.RoutedEvent
View Source

SearchDisabledTextProperty

Identifies the System.Windows.DependencyProperty for SearchDisabledText.

Declaration
public static readonly DependencyProperty SearchDisabledTextProperty
Field Value
Type Description
System.Windows.DependencyProperty
View Source

SearchScopeDisplayMemberPathProperty

Identifies the System.Windows.DependencyProperty for SearchScopeDisplayMemberPath.

Declaration
public static readonly DependencyProperty SearchScopeDisplayMemberPathProperty
Field Value
Type Description
System.Windows.DependencyProperty
View Source

SearchScopesProperty

Identifies the System.Windows.DependencyProperty for SearchScopes.

Declaration
public static readonly DependencyProperty SearchScopesProperty
Field Value
Type Description
System.Windows.DependencyProperty
View Source

SearchScopeWatermarkDisplayMemberPathProperty

Identifies the System.Windows.DependencyProperty for SearchScopeWatermarkDisplayMemberPath.

Declaration
public static readonly DependencyProperty SearchScopeWatermarkDisplayMemberPathProperty
Field Value
Type Description
System.Windows.DependencyProperty
View Source

SearchTextProperty

Identifies the System.Windows.DependencyProperty for SearchText.

Declaration
public static readonly DependencyProperty SearchTextProperty
Field Value
Type Description
System.Windows.DependencyProperty
View Source

SelectedSearchScopeProperty

Identifies the System.Windows.DependencyProperty for SelectedSearchScope.

Declaration
public static readonly DependencyProperty SelectedSearchScopeProperty
Field Value
Type Description
System.Windows.DependencyProperty
View Source

UpdateDelayProperty

Identifies the System.Windows.DependencyProperty for UpdateDelay.

Declaration
public static readonly DependencyProperty UpdateDelayProperty
Field Value
Type Description
System.Windows.DependencyProperty
View Source

UpdateSourceTriggerProperty

Identifies the System.Windows.DependencyProperty for UpdateSourceTrigger.

Declaration
public static readonly DependencyProperty UpdateSourceTriggerProperty
Field Value
Type Description
System.Windows.DependencyProperty
View Source

WatermarkFormatProperty

Identifies the System.Windows.DependencyProperty for SelectedSearchScope.

Declaration
public static readonly DependencyProperty WatermarkFormatProperty
Field Value
Type Description
System.Windows.DependencyProperty
View Source

WatermarkProperty

Identifies the System.Windows.DependencyProperty for Watermark.

Declaration
public static readonly DependencyProperty WatermarkProperty
Field Value
Type Description
System.Windows.DependencyProperty

Properties

View Source

IsResetButtonVisible

Gets or sets a value indicating wheter the Reset Button should be visible.

Declaration
public bool? IsResetButtonVisible { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

true if the reset button is currently visible.

View Source

KeyDownCommand

Gets the Command that should be executed when a key is pressed down in the search box.

Declaration
public ICommand KeyDownCommand { get; protected set; }
Property Value
Type Description
System.Windows.Input.ICommand
View Source

ResetCommand

Gets the reset command.

Declaration
public ICommand ResetCommand { get; }
Property Value
Type Description
System.Windows.Input.ICommand

The reset command.

View Source

SearchDisabledText

Gets or sets the text that is shown if System.Windows.UIElement.IsEnabled is false.

Declaration
public string SearchDisabledText { get; set; }
Property Value
Type Description
System.String

The text that is shown if System.Windows.UIElement.IsEnabled is false.

View Source

SearchScopeDisplayMemberPath

Gets or sets the display member path for the search scopes.

Declaration
public string SearchScopeDisplayMemberPath { get; set; }
Property Value
Type Description
System.String

The display member path.

View Source

SearchScopes

Gets or sets the available search scopes.

Declaration
public IEnumerable SearchScopes { get; set; }
Property Value
Type Description
System.Collections.IEnumerable

The available search scopes.

View Source

SearchScopeWatermarkDisplayMemberPath

Gets or sets the member path used to display in the text box watermark.

Declaration
public string SearchScopeWatermarkDisplayMemberPath { get; set; }
Property Value
Type Description
System.String

The member path used to display in the text box watermark.

View Source

SearchText

Gets or sets the search text.

Declaration
public string SearchText { get; set; }
Property Value
Type Description
System.String

The search text.

View Source

SelectedSearchScope

Gets or sets the selected search scope.

Declaration
public object SelectedSearchScope { get; set; }
Property Value
Type Description
System.Object

The selected search scope.

View Source

UpdateDelay

Gets or sets the delay in milliseconds used when UpdateSourceTrigger is System.Windows.Data.UpdateSourceTrigger.PropertyChanged.

Declaration
public int UpdateDelay { get; set; }
Property Value
Type Description
System.Int32

The delay used when UpdateSourceTrigger is System.Windows.Data.UpdateSourceTrigger.PropertyChanged.

Remarks

The default is 200 ms.

View Source

UpdateSourceTrigger

Gets or sets the UpdateSourceTrigger for the SearchText binding.

Declaration
public UpdateSourceTrigger UpdateSourceTrigger { get; set; }
Property Value
Type Description
System.Windows.Data.UpdateSourceTrigger
Remarks

The default is System.Windows.Data.UpdateSourceTrigger.PropertyChanged. Which means an update of SearchText as the user types (delayed by UpdateDelay). When this is set to System.Windows.Data.UpdateSourceTrigger.Explicit the SearchText is updated when the user presses Return. When set to System.Windows.Data.UpdateSourceTrigger.LostFocus the SearchText is updated when the search box looses focus.

View Source

Watermark

Gets the watermark.

Declaration
public string Watermark { get; }
Property Value
Type Description
System.String

The watermark.

View Source

WatermarkFormat

Gets or sets the watermark format.

Declaration
public string WatermarkFormat { get; set; }
Property Value
Type Description
System.String

The watermark format.

Remarks

This format defines how the watermark should be displayed for a selected item. The default is '{0}'. But you can use something like 'Search in {0}'.

Methods

View Source

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate().

Declaration
public override void OnApplyTemplate()
Overrides
System.Windows.FrameworkElement.OnApplyTemplate()

Events

View Source

Reset

Occurs when reset is clicked.

Declaration
public event RoutedEventHandler Reset
Event Type
Type Description
System.Windows.RoutedEventHandler

Implements

System.Windows.Media.Animation.IAnimatable
System.ComponentModel.ISupportInitialize
System.Windows.IFrameworkInputElement
System.Windows.IInputElement
System.Windows.Markup.IQueryAmbient

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
DependencyObjectExtensions.GetContainer(DependencyObject)
DependencyObjectExtensions.SetContainer(DependencyObject, CompositionContainer)
DependencyObjectExtensions.FindAncestor<T>(DependencyObject)
DependencyObjectExtensions.FindFirstChildByType<T>(DependencyObject)
DependencyObjectExtensions.FindLogicalAncestor<T>(DependencyObject)
DependencyObjectExtensions.GetChildsByType<T>(DependencyObject, List<T>)
DependencyObjectExtensions.GetChildrenByType<T>(DependencyObject)
DependencyObjectExtensions.XamlClone<T>(T)
FrameworkElementExtensions.FindChildByName<T>(FrameworkElement, String)
  • View Source
Back to top Generated by DocFX