|
<Window x:Class="PaulStovell.Samples.WpfValidation.AdvancedWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:PaulStovell.Samples.WpfValidation"
Title="Simple Validation" Height="300" Width="300" WindowState="Maximized"
>
<!--
See App.xml for the ErrorTemplate style applied to these TextBoxes.
-->
<Border Padding="50">
<StackPanel>
<TextBlock>
To see validation using ValidationRules, change the App.xaml's StartupUri to SimpleWindow.xaml.
</TextBlock>
<local:ErrorProvider>
<StackPanel>
<TextBox Text="{Binding Path=Name, UpdateSourceTrigger=PropertyChanged}" Width="200" Margin="5" />
<TextBox Text="{Binding Path=Address, UpdateSourceTrigger=PropertyChanged}" Width="200" Margin="5" />
</StackPanel>
</local:ErrorProvider>
</StackPanel>
</Border>
</Window>
|
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.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
My name is
Paul Stovell. I live in Brisbane and develop an automated release management product,
Octopus Deploy. Prior to working on Octopus I worked for an investment bank in London, and for
Readify. I also work on
a few open source projects. I am a Microsoft MVP for Client Application Development.