.NET Framework Developer Center > .NET Development Forums > Windows Presentation Foundation (WPF) > Changing font color of labels if data validation fails in WPF
Ask a questionAsk a question
 

AnswerChanging font color of labels if data validation fails in WPF

  • Wednesday, November 04, 2009 12:37 PMRain drops Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,


    Need a sample code for changing font color of labels if data validation fails. We have a xml file that gives the data. If we set Nullable attribute value=0 then in the UI  the label font color should change to red.

    please provdie some xaml smple code.

Answers

All Replies