Click here to Skip to main content
15,914,162 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: parsing HTML files Pin
Michael Sync18-Oct-08 22:02
Michael Sync18-Oct-08 22:02 
QuestionAudio conferencing using WCF and WPF Pin
sumantamca3-Sep-08 21:55
sumantamca3-Sep-08 21:55 
QuestionParsing XML files [modified] Pin
skrajasthan3-Sep-08 21:52
skrajasthan3-Sep-08 21:52 
GeneralRe: Parsing XML files Pin
Pete O'Hanlon14-Sep-08 22:54
mvePete O'Hanlon14-Sep-08 22:54 
Questionreading XML files Pin
swatikavdia3-Sep-08 21:08
swatikavdia3-Sep-08 21:08 
AnswerRe: reading XML files Pin
Michael Sync18-Oct-08 22:08
Michael Sync18-Oct-08 22:08 
QuestionTextbox validation Pin
Aslesh3-Sep-08 4:52
Aslesh3-Sep-08 4:52 
AnswerRe: Textbox validation Pin
Pete O'Hanlon3-Sep-08 10:21
mvePete O'Hanlon3-Sep-08 10:21 
Well - there are many ways to perform validation in WPF. Here's an example of a validation rule that ensures that your input matches a particular format. The first part is a C# class:
public MatchRule : ValidationRule
{
  public string MatchText { get; set; }

  public override ValidationResult Validate(object value,
    CultureInfo info)
  {
    if ((string)value == MatchText)
      return new ValidationResult(true, null);
    return new ValidationResult(false, "This is not a match");
  }
}
and in the XAML:
<TextBox>
  <TextBox.Text>
    <Binding.ValidationRules>
      <local:MatchRule MatchText="Hello" />
    </Binding.ValidationRules>
  </TextBox.Text>
</TextBox>


Deja View - the feeling that you've seen this post before.

My blog | My articles



QuestionHow to animate Expander ? Pin
hdv2123-Sep-08 1:17
hdv2123-Sep-08 1:17 
AnswerRe: How to animate Expander ? Pin
Pete O'Hanlon3-Sep-08 1:25
mvePete O'Hanlon3-Sep-08 1:25 
QuestionAbout eml file parsing in silverlight Pin
skrajasthan2-Sep-08 23:58
skrajasthan2-Sep-08 23:58 
QuestionAdvantages of Silver light for user using silver light application ? Pin
King Shez2-Sep-08 21:47
King Shez2-Sep-08 21:47 
QuestionHelp: Audio conferencing using WCF Pin
Jasvinder Kumar Bali2-Sep-08 20:53
Jasvinder Kumar Bali2-Sep-08 20:53 
QuestionSaving a image of WPF form Pin
shazaduh2-Sep-08 10:03
shazaduh2-Sep-08 10:03 
AnswerRe: Saving a image of WPF form Pin
Mark Salsbery2-Sep-08 10:48
Mark Salsbery2-Sep-08 10:48 
QuestionHow to add the custom control in tool box using wpf Pin
bruze2-Sep-08 5:23
bruze2-Sep-08 5:23 
QuestionPassing objects by ref in WPF Pin
copiloto2-Sep-08 4:45
copiloto2-Sep-08 4:45 
QuestionHow to Create Toolbox and Properybox using WPF(C sharp) Pin
bruze2-Sep-08 3:41
bruze2-Sep-08 3:41 
AnswerRe: How to Create Toolbox and Properybox using WPF(C sharp) Pin
Pete O'Hanlon2-Sep-08 4:00
mvePete O'Hanlon2-Sep-08 4:00 
Question[Message Deleted] Pin
bruze2-Sep-08 2:13
bruze2-Sep-08 2:13 
GeneralRe: How to create ToolBox ,Property box using WPF Pin
Pete O'Hanlon2-Sep-08 3:07
mvePete O'Hanlon2-Sep-08 3:07 
QuestionStackpanel visibility problem?? Pin
Dotnetkanna1-Sep-08 20:18
Dotnetkanna1-Sep-08 20:18 
QuestionCalling Dot Net 2 Webservice In Silverlight Pin
fasih19811-Sep-08 17:42
fasih19811-Sep-08 17:42 
QuestionWPF modularity question(s) -- hot swapping Pin
chaiguy13371-Sep-08 10:45
chaiguy13371-Sep-08 10:45 
AnswerRe: WPF modularity question(s) -- hot swapping Pin
Pete O'Hanlon1-Sep-08 10:57
mvePete O'Hanlon1-Sep-08 10:57 

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.