ValidationContextControl
This control created to display IValidationContext.
Inherits from Catel.Windows.Controls.UserControl.
The IValidationContext container allows querying of all validations of a model (ViewModel) object. So this control can be very useful when user accepting model (viewModel) changes (in dialogs, forms etc).
Properties
Property name | Description |
---|---|
AccentColorBrush | Gets or sets accent color. |
IsExpandedAllOnStartup | Gets or sets value indicating whether all nodes of validation context tree expanded on startup. |
ShowButtons | Gets or sets whether Open and Copy buttons (see picture above) are visible. |
ShowFilterBox | Gets or sets whether FilterBox (see picture above) is visible. |
ValidationContext | Gets or sets displayed validation context. |
How to use
Bind IValidationContext
value to ValidationContext
property of control.
<orc:ValidationContextView x:Name="validationContextView"
ValidationContext="{Binding ValidationContext}"
IsExpandedAllOnStartup="True" />
Contributions
We would like to thank the following contributors:
Want to contribute to the documentation? We have a guide for that!
Questions
Have a question about Catel or WildGums controls? Use StackOverflow with the Catel tag!