Possible Duplicate:
Access DisplayName in xaml
Is there a standard way in XAML to bind to an attribute of an object? I know this is a similar question to this one and that I can create a MarkupExtension or use a Converter. I'm just wondering if there's some built in markup or native support in .net 4.5.
i.e.
// Some class with an Attribute:
[Description("A description")]
class Foo
{
}
// XAML - DataContext is a Foo object
<UserControl DataContext="{StaticResource myFoo}"
<TextBlock Text="{Binding ?Description?}"/>
</UserControl>