Click here to Skip to main content
13,598,689 members
Rate this:
Please Sign up or sign in to vote.
HI, sorry for my english.
I have a problem with WPF, and so have the application, where it wants to implement validation controls. I created a class StringValidation that inherits from the ValidationRule. There, I implemented the method validation. in XAML while I did something like this:
<TextBox Height="23" Margin="53,39,0,0" Name="txtNazwa" VerticalAlignment="Top" TabIndex="3" MaxLines="1" GotFocus="txtNazwa_GotFocus" HorizontalAlignment="Left" Width="218"

                             ToolTip="Nazwa wybranej roli" Style="{StaticResource textBoxError}" Validation.ErrorTemplate="{StaticResource errorTemplate}">
                    <Binding Path="Nazwa" UpdateSourceTrigger="PropertyChanged" >
                            <s:StringValidation ValidatesOnTargetUpdated="True"





And everything started working, so I think that is ok, whereas in the designer crashes error:

Error 1 The type 's:StringValidation' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.

where I added:


where the namespace is consistent with the StringValidation class. I do not know what it is, a very difficult job to me. Any suggestions where is the problem and how to fix / avoid?
Posted 8-Jan-13 20:43pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web01-2016 | 2.8.180621.3 | Last Updated 9 Jan 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100