If condition in XAML

wpf, xaml

Solution

Yes, they're called `Trigger`s. There are different kinds and they react to changes in values of data that is data bound, events that are fired, or even the state of user interface controls. You can find a good article describing them in the Triggers in WPF post on Code Project.

EDIT >>>

I have just added your comment into your question and I have to say that putting such an important part of your question into a comment was not a good idea... as such, most of the answers so far do not answer your actual question. For this reason, I have downvoted your question.

In response to your actual question, no, I do not believe that you can use conditional XAML which can identify the difference between versions of Visual Studio. If you told us what you end goal is, then we may still be able to help.

Problem

is that possible to implement an if condition via XAML for wpf , if yes please provide the skeleton for if condition for checking .net framework version in xaml. I am sharing xaml for Visual studio 2010 and 2008 , i wanna execute specific code snippet for vs2010 and hide the same for vs2008

Original source