Click here to Skip to main content
15,892,161 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Deploying WPF Browser apllications... Pin
Parwej Ahamad12-Apr-10 6:29
professionalParwej Ahamad12-Apr-10 6:29 
GeneralRe: Deploying WPF Browser apllications... Pin
Hema Bairavan12-Apr-10 22:59
Hema Bairavan12-Apr-10 22:59 
GeneralRe: Deploying WPF Browser apllications... Pin
Parwej Ahamad13-Apr-10 4:47
professionalParwej Ahamad13-Apr-10 4:47 
GeneralRe: Deploying WPF Browser apllications... Pin
Hema Bairavan14-Apr-10 19:27
Hema Bairavan14-Apr-10 19:27 
GeneralRe: Deploying WPF Browser apllications... Pin
Parwej Ahamad14-Apr-10 20:13
professionalParwej Ahamad14-Apr-10 20:13 
AnswerRe: Deploying WPF Browser apllications... Pin
AspDotNetDev15-Apr-10 14:30
protectorAspDotNetDev15-Apr-10 14:30 
QuestionWPF : Setting TargetName in StoryBoard while using DataTrigger PinPopular
Prasoon Chaudhary11-Apr-10 19:31
Prasoon Chaudhary11-Apr-10 19:31 
QuestionSilverlight 3 - While validation it breaks the application and shows the error Pin
dwadasi11-Apr-10 18:16
dwadasi11-Apr-10 18:16 
Hi,

I am new to silverlight 3,in my application validations are firing, it shows the debugging error(it breaks the application running), and RIA services are loaded(Beta) in my system. can you please check the following code and Help me out, Thanks in advance.

Class File:
public class userValidation:INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;

private void RaisePropertyChanged(string propertyName)
{
if (this.PropertyChanged != null)
{
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
private string _name;
public string UserName
{
get { return _name; }
set
{
if (value.Length<4)
{
throw new ValidationException("Please set value");
}
_name = value;
RaisePropertyChanged("UserName");
}
}
}

UI:
<textbox x:name="txtEmpNo"
="" maxlength="5" style="{StaticResource txtBoxStyle}" grid.row="1" grid.column="1" width="200" height="30">
<textbox.text>
<binding path="UserName" mode="TwoWay" validatesonexceptions="True" notifyonvalidationerror="True">



In page load:
userValidation test = new userValidation();
LayoutRoot.DataContext = test;

Thanks and Regards
Murty
AnswerRe: Silverlight 3 - While validation it breaks the application and shows the error Pin
Abhinav S11-Apr-10 18:28
Abhinav S11-Apr-10 18:28 
GeneralRe: Silverlight 3 - While validation it breaks the application and shows the error Pin
dwadasi11-Apr-10 18:57
dwadasi11-Apr-10 18:57 
GeneralRe: Silverlight 3 - While validation it breaks the application and shows the error Pin
Abhinav S11-Apr-10 19:07
Abhinav S11-Apr-10 19:07 
GeneralRe: Silverlight 3 - While validation it breaks the application and shows the error Pin
dwadasi11-Apr-10 21:51
dwadasi11-Apr-10 21:51 
QuestionRegex validation in Silverlight RIA services Pin
jonathan1511-Apr-10 9:35
jonathan1511-Apr-10 9:35 
QuestionHow to define another XAML page element as SourceName of EventTrigger Pin
Prasoon Chaudhary9-Apr-10 7:04
Prasoon Chaudhary9-Apr-10 7:04 
AnswerRe: How to define another XAML page element as SourceName of EventTrigger Pin
Paul Selormey10-Apr-10 22:31
Paul Selormey10-Apr-10 22:31 
QuestionSecuring Silverlight and WCF Services with Windows Security Pin
Michael J. Eber9-Apr-10 6:47
Michael J. Eber9-Apr-10 6:47 
QuestionCreating dynamicly loading pages in WPF Pin
Ian Durward9-Apr-10 0:53
Ian Durward9-Apr-10 0:53 
AnswerRe: Creating dynamicly loading pages in WPF Pin
Paul Selormey10-Apr-10 22:14
Paul Selormey10-Apr-10 22:14 
QuestionRoute Flash Event to WPF Code Pin
Tiger4568-Apr-10 23:07
Tiger4568-Apr-10 23:07 
AnswerRe: Route Flash Event to WPF Code Pin
Paul Selormey10-Apr-10 22:23
Paul Selormey10-Apr-10 22:23 
Question[C#] How to access Image created at runtime Pin
aleroot8-Apr-10 5:06
aleroot8-Apr-10 5:06 
AnswerRe: [C#] How to access Image created at runtime Pin
aleroot8-Apr-10 9:40
aleroot8-Apr-10 9:40 
QuestionWPF and dual screens [modified] Pin
phannon867-Apr-10 23:04
professionalphannon867-Apr-10 23:04 
AnswerRe: WPF and dual screens Pin
phannon868-Apr-10 23:23
professionalphannon868-Apr-10 23:23 
Questionnavigate to a page\usercontrol through code Pin
Bad Programmer7-Apr-10 20:39
Bad Programmer7-Apr-10 20:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.