|
<Application x:Class="POC.Validatie.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="MainWindow.xaml">
<Application.Resources>
<ControlTemplate x:Key="validationTemplate">
<StackPanel Orientation="Horizontal">
<Border BorderBrush="Green" BorderThickness="1">
<AdornedElementPlaceholder x:Name="adorner" />
</Border>
<TextBlock Foreground="Red" FontSize="10pt"
Text="{Binding ElementName=adorner, Path=AdornedElement.(Validation.Errors).CurrentItem.ErrorContent}" />
</StackPanel>
</ControlTemplate>
</Application.Resources>
</Application>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.