I only have a few months experience with XAML and often have a difficult time determining how to bind to or reference elements defined in various places in my XAML. I recently ran across X:Reference, which I understand is new with XAML 2009 and .NET 4.
For example, assume I am trying to bind to the IsChecked property of an element named DisplayIndicator, which is defined elsewhere in my XAML. X:Reference allows me to do it as follows:
{Binding Source={x:Reference DisplayIndicator}, Path=IsChecked}
This seems like an easy way (and preferred way?) to reference almost any element declared in my XAML. Am I wrong about this? Is there a downside to using this?
Thanks very much.