Rules
Name | Remarks |
---|---|
NoBlankTextRule | Property: ErrorContent |
RegexRule | Property: ErrorContent, Type, Pattern |
How to Create ValidationRule?
1 | public class NumericUpDownDemoRule : ValidationRule |
Example
RegexRule
1 | <hc:SearchBar hc:InfoElement.Placeholder="Please Enter Email" hc:InfoElement.Title="Title" Margin="0,32,0,0" hc:InfoElement.Necessary="True" Style="{StaticResource SearchBarPlus}"> |
NoBlankTextRule
1 | <hc:SearchBar Style="{StaticResource SearchBarPlus}"> |