Show / Hide Table of Contents

Class ValidationSummary

Displays a summary of validation errors on a form.

Inheritance
System.Object
DependencyObject
UIElement
FrameworkElement
Control
ValidationSummary
Inherited Members
Control.EnableBaseControlHandlingOfVisualStates
Control.ManageIsEnabled(Boolean)
Control.Background
Control.BackgroundProperty
Control.BorderBrush
Control.BorderBrushProperty
Control.BorderThickness
Control.BorderThicknessProperty
Control.FontWeight
Control.FontWeightProperty
Control.FontStyle
Control.FontStyleProperty
Control.Foreground
Control.ForegroundProperty
Control.FontFamily
Control.FontFamilyProperty
Control.FontSize
Control.FontSizeProperty
Control.TextDecorations
Control.TextDecorationsProperty
Control.Padding
Control.PaddingProperty
Control.HorizontalContentAlignment
Control.HorizontalContentAlignmentProperty
Control.VerticalContentAlignment
Control.VerticalContentAlignmentProperty
Control.TabIndex
Control.TabIndexProperty
Control.IsTabStop
Control.IsTabStopProperty
Control.TabNavigation
Control.TabNavigationProperty
Control.Template
Control.TemplateProperty
Control.ApplyTemplate()
Control.GetTemplateChild(String)
Control.Focus()
Control.HandlesScrolling
Control.OnGotFocus(RoutedEventArgs)
Control.OnLostFocus(RoutedEventArgs)
Control.CreateDomElement(Object, Object)
Control.CharacterSpacingProperty
Control.CharacterSpacing
Control.FontStretchProperty
Control.FontStretch
Control.OnDrop(DragEventArgs)
Control.OnDragEnter(DragEventArgs)
Control.OnDragLeave(DragEventArgs)
Control.OnTextInputUpdate(TextCompositionEventArgs)
Control.MeasureOverride(Size)
Control.ArrangeOverride(Size)
FrameworkElement.LayoutUpdated
FrameworkElement.SizeChanged
FrameworkElement.ResourceLookupMode
FrameworkElement.StyleProperty
FrameworkElement.Style
FrameworkElement.DefaultStyleKeyProperty
FrameworkElement.DefaultStyleKey
FrameworkElement.OverridesDefaultStyleProperty
FrameworkElement.OverridesDefaultStyle
FrameworkElement.OnVisualParentChanged(DependencyObject)
FrameworkElement.VisualChildrenCount
FrameworkElement.GetVisualChild(Int32)
FrameworkElement.Parent
FrameworkElement.AddLogicalChild(Object)
FrameworkElement.RemoveLogicalChild(Object)
FrameworkElement.LogicalChildren
FrameworkElement.TemplatedParent
FrameworkElement.Resources
FrameworkElement.IsLoaded
FrameworkElement.SetBinding(DependencyProperty, BindingBase)
FrameworkElement.SetBinding(DependencyProperty, Binding)
FrameworkElement.GetBindingExpression(DependencyProperty)
FrameworkElement.Cursor
FrameworkElement.CursorProperty
FrameworkElement.FindName(String)
FrameworkElement.Name
FrameworkElement.NameProperty
FrameworkElement.DataContext
FrameworkElement.DataContextProperty
FrameworkElement.DataContextChanged
FrameworkElement.Triggers
FrameworkElement.FlowDirectionProperty
FrameworkElement.FlowDirection
FrameworkElement.LanguageProperty
FrameworkElement.Language
FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs)
FrameworkElement.Tag
FrameworkElement.TagProperty
FrameworkElement.LoadedEvent
FrameworkElement.Loaded
FrameworkElement.Unloaded
FrameworkElement.BindingValidationError
FrameworkElement.ContextMenuProperty
FrameworkElement.ContextMenu
FrameworkElement.ContextMenuOpening
FrameworkElement.ToolTipProperty
FrameworkElement.ToolTip
FrameworkElement.INTERNAL_OnDetachedFromVisualTree()
FrameworkElement.INTERNAL_OnAttachedToVisualTree()
FrameworkElement.Height
FrameworkElement.HeightProperty
FrameworkElement.Width
FrameworkElement.WidthProperty
FrameworkElement.HorizontalAlignment
FrameworkElement.HorizontalAlignmentProperty
FrameworkElement.VerticalAlignment
FrameworkElement.VerticalAlignmentProperty
FrameworkElement.Margin
FrameworkElement.MarginProperty
FrameworkElement.MinHeight
FrameworkElement.MinHeightProperty
FrameworkElement.MinWidth
FrameworkElement.MinWidthProperty
FrameworkElement.MaxHeight
FrameworkElement.MaxHeightProperty
FrameworkElement.MaxWidth
FrameworkElement.MaxWidthProperty
FrameworkElement.ActualWidthProperty
FrameworkElement.ActualWidth
FrameworkElement.ActualHeightProperty
FrameworkElement.ActualHeight
UIElement.TransformToVisual(UIElement)
UIElement.RenderSize
UIElement.DesiredSize
UIElement.InvalidateMeasure()
UIElement.InvalidateArrange()
UIElement.Measure(Size)
UIElement.Arrange(Rect)
UIElement.UpdateLayout()
UIElement.DragEnter
UIElement.DragLeave
UIElement.Drop
UIElement.DragOver
UIElement.CacheMode
UIElement.CacheModeProperty
UIElement.Projection
UIElement.ProjectionProperty
UIElement.VisualParent
UIElement.AddVisualChild(UIElement)
UIElement.RemoveVisualChild(UIElement)
UIElement.OnVisualChildrenChanged(DependencyObject, DependencyObject)
UIElement.XamlSourcePath
UIElement.ClipToBounds
UIElement.ClipToBoundsProperty
UIElement.ClipProperty
UIElement.Clip
UIElement.IsEnabledProperty
UIElement.IsEnabled
UIElement.IsEnabledChanged
UIElement.EffectProperty
UIElement.Effect
UIElement.RenderTransformProperty
UIElement.RenderTransform
UIElement.RenderTransformOriginProperty
UIElement.RenderTransformOrigin
UIElement.UseLayoutRounding
UIElement.UseLayoutRoundingProperty
UIElement.Visibility
UIElement.VisibilityProperty
UIElement.IsVisibleProperty
UIElement.IsVisible
UIElement.IsVisibleChanged
UIElement.OpacityProperty
UIElement.Opacity
UIElement.OpacityMaskProperty
UIElement.OpacityMask
UIElement.IsHitTestVisible
UIElement.IsHitTestVisibleProperty
UIElement.AllowDrop
UIElement.AllowDropProperty
UIElement.CaptureMouse()
UIElement.IsMouseCaptured
UIElement.ReleaseMouseCapture()
UIElement.AllowScrollOnTouchMove
UIElement.AllowScrollOnTouchMoveProperty
UIElement.AddHandler(RoutedEvent, Delegate, Boolean)
UIElement.RemoveHandler(RoutedEvent, Delegate)
UIElement.MouseMoveEvent
UIElement.MouseMove
UIElement.OnMouseMove(MouseEventArgs)
UIElement.MouseLeftButtonDownEvent
UIElement.MouseLeftButtonDown
UIElement.OnMouseLeftButtonDown(MouseButtonEventArgs)
UIElement.MouseRightButtonDownEvent
UIElement.MouseRightButtonDown
UIElement.OnMouseRightButtonDown(MouseButtonEventArgs)
UIElement.MouseWheelEvent
UIElement.MouseWheel
UIElement.OnMouseWheel(MouseWheelEventArgs)
UIElement.MouseLeftButtonUpEvent
UIElement.MouseLeftButtonUp
UIElement.OnMouseLeftButtonUp(MouseButtonEventArgs)
UIElement.MouseEnterEvent
UIElement.MouseEnter
UIElement.OnMouseEnter(MouseEventArgs)
UIElement.MouseLeaveEvent
UIElement.MouseLeave
UIElement.OnMouseLeave(MouseEventArgs)
UIElement.TextInputStartEvent
UIElement.TextInputStart
UIElement.OnTextInputStart(TextCompositionEventArgs)
UIElement.TextInputEvent
UIElement.TextInput
UIElement.OnTextInput(TextCompositionEventArgs)
UIElement.TextInputUpdateEvent
UIElement.TextInputUpdate
UIElement.TappedEvent
UIElement.Tapped
UIElement.OnTapped(TappedRoutedEventArgs)
UIElement.MouseRightButtonUpEvent
UIElement.MouseRightButtonUp
UIElement.OnMouseRightButtonUp(MouseButtonEventArgs)
UIElement.KeyDownEvent
UIElement.KeyDown
UIElement.OnKeyDown(KeyEventArgs)
UIElement.KeyUpEvent
UIElement.KeyUp
UIElement.OnKeyUp(KeyEventArgs)
UIElement.GotFocusEvent
UIElement.GotFocus
UIElement.LostFocusEvent
UIElement.LostFocus
UIElement.LostMouseCapture
UIElement.OnLostMouseCapture(MouseEventArgs)
UIElement.INTERNAL_AttachToDomEvents()
UIElement.INTERNAL_DetachFromDomEvents()
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Controls
Assembly: OpenSilver.Controls.Data.Input.dll
Syntax
[TemplatePart(Name = "SummaryListBox", Type = typeof(ListBox))]
[StyleTypedProperty(Property = "SummaryListBoxStyle", StyleTargetType = typeof(ListBox))]
[StyleTypedProperty(Property = "ErrorStyle", StyleTargetType = typeof(ListBoxItem))]
public class ValidationSummary : Control, IControl, IFrameworkElement, IUIElement, IDependencyObject

Constructors

| Improve this Doc View Source

ValidationSummary()

Initializes a new instance of the ValidationSummary class.

Declaration
public ValidationSummary()

Fields

| Improve this Doc View Source

ErrorStyleProperty

Identifies the ErrorStyle dependency property

Declaration
public static readonly DependencyProperty ErrorStyleProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

FilterProperty

Identifies the Filter dependency property

Declaration
public static readonly DependencyProperty FilterProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

FocusControlsOnClickProperty

Identifies the FocusControlsOnClick dependency property.

Declaration
public static readonly DependencyProperty FocusControlsOnClickProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

HasDisplayedErrorsProperty

Identifies the HasDisplayedErrors dependency property

Declaration
public static readonly DependencyProperty HasDisplayedErrorsProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

HasErrorsProperty

Identifies the HasErrors dependency property

Declaration
public static readonly DependencyProperty HasErrorsProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

HeaderProperty

Identifies the Header dependency property

Declaration
public static readonly DependencyProperty HeaderProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

HeaderTemplateProperty

Identifies the HeaderTemplate dependency property

Declaration
public static readonly DependencyProperty HeaderTemplateProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

ShowErrorsInSummaryProperty

Gets or sets a value indicating whether the field errors belonging to the input control should be shown in the ValidationSummary. Errors are added to the DisplayedErrors list depending on this flag. The base Errors list, however, will always contain all the errors.

Declaration
public static readonly DependencyProperty ShowErrorsInSummaryProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

SummaryListBoxStyleProperty

Identifies the SummaryListBoxStyle dependency property.

Declaration
public static readonly DependencyProperty SummaryListBoxStyleProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

TargetProperty

Identifies the Target dependency property.

Declaration
public static readonly DependencyProperty TargetProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

DisplayedErrors

Gets the collection of errors that are displayed after the Filter is applied.

Declaration
public ReadOnlyObservableCollection<ValidationSummaryItem> DisplayedErrors { get; }
Property Value
Type Description
System.Collections.ObjectModel.ReadOnlyObservableCollection<ValidationSummaryItem>
| Improve this Doc View Source

Errors

Gets the collection of errors.

Declaration
public ObservableCollection<ValidationSummaryItem> Errors { get; }
Property Value
Type Description
System.Collections.ObjectModel.ObservableCollection<ValidationSummaryItem>
| Improve this Doc View Source

ErrorStyle

Gets or sets the style used for the error's item container.

Declaration
public Style ErrorStyle { get; set; }
Property Value
Type Description
Style
| Improve this Doc View Source

Filter

Gets or sets a value that indicates which types of errors are displayed.

Declaration
public ValidationSummaryFilters Filter { get; set; }
Property Value
Type Description
ValidationSummaryFilters
| Improve this Doc View Source

FocusControlsOnClick

Gets or sets a value that indicates whether focus is set on the input control when an error message is clicked.

Declaration
public bool FocusControlsOnClick { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

HasDisplayedErrors

Gets or sets a value that indicates whether the ValidationSummary has displayed errors.

Declaration
public bool HasDisplayedErrors { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

HasErrors

Gets or sets a value that indicates whether the ValidationSummary has errors.

Declaration
public bool HasErrors { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Header

Gets or sets the content of the ValidationSummary header.

Declaration
public object Header { get; set; }
Property Value
Type Description
System.Object
| Improve this Doc View Source

HeaderTemplate

Gets or sets the template that is used to display the content of the header.

Declaration
public DataTemplate HeaderTemplate { get; set; }
Property Value
Type Description
DataTemplate
| Improve this Doc View Source

SummaryListBoxStyle

Gets or sets the style applied to the ListBox that displays the errors.

Declaration
public Style SummaryListBoxStyle { get; set; }
Property Value
Type Description
Style
| Improve this Doc View Source

Target

Gets or sets the UIElement for which validation errors will be displayed in the summary.

Declaration
public UIElement Target { get; set; }
Property Value
Type Description
UIElement

Methods

| Improve this Doc View Source

GetShowErrorsInSummary(DependencyObject)

Gets the ShowErrorsInSummary property of the specified DependencyObject.

Declaration
public static bool GetShowErrorsInSummary(DependencyObject inputControl)
Parameters
Type Name Description
DependencyObject inputControl

The input control to get the ShowErrorsInSummary property from.

Returns
Type Description
System.Boolean

The value indicating whether errors on the input control should be shown.

| Improve this Doc View Source

OnApplyTemplate()

When the template is applied, this loads all the template parts

Declaration
public override void OnApplyTemplate()
Overrides
Control.OnApplyTemplate()
| Improve this Doc View Source

OnCreateAutomationPeer()

Creates AutomationPeer (OnCreateAutomationPeer())

Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
Type Description
AutomationPeer

The AutomationPeer associated with this ValidationSummary.

Overrides
UIElement.OnCreateAutomationPeer()
| Improve this Doc View Source

OnFocusingInvalidControl(FocusingInvalidControlEventArgs)

OnErrorClicked is invoked when an error in the ValidationSummary is clicked, via either the mouse or keyboard.

Declaration
protected virtual void OnFocusingInvalidControl(FocusingInvalidControlEventArgs e)
Parameters
Type Name Description
FocusingInvalidControlEventArgs e

The FocusingInvalidControlEventArgs for the event.

| Improve this Doc View Source

SetShowErrorsInSummary(DependencyObject, Boolean)

Sets the ShowErrorsInSummary property of the specified DependencyObject.

Declaration
public static void SetShowErrorsInSummary(DependencyObject inputControl, bool value)
Parameters
Type Name Description
DependencyObject inputControl

The input control with which to associate the specified dependency property.

System.Boolean value

The value indicating whether errors on the input control should be shown.

Events

| Improve this Doc View Source

FocusingInvalidControl

Event triggered when an Error is clicked on.

Declaration
public event EventHandler<FocusingInvalidControlEventArgs> FocusingInvalidControl
Event Type
Type Description
System.EventHandler<FocusingInvalidControlEventArgs>
| Improve this Doc View Source

SelectionChanged

Event triggered when the selected error has changed.

Declaration
public event EventHandler<SelectionChangedEventArgs> SelectionChanged
Event Type
Type Description
System.EventHandler<SelectionChangedEventArgs>

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
UIElementExtendedRoutedEventExtensions.AddHandler(UIElement, ExtendedRoutedEvent, Delegate, Boolean)
UIElementExtendedRoutedEventExtensions.RemoveHandler(UIElement, ExtendedRoutedEvent, Delegate)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
VisualTreeExtensions.GetBoundsRelativeTo(FrameworkElement, UIElement)
VisualTreeExtensions.InvokeOnLayoutUpdated(FrameworkElement, Action)
  • Improve this Doc
  • View Source