How can i access DisplayName's value in XAML?
I've got:
public class ViewModel {
[DisplayName("My simple property")]
public string Property {
get { return "property";}
}
}
XAML:
<TextBlock Text="{Binding ??Property.DisplayName??}"/>
<TextBlock Text="{Binding Property}"/>
Is there any way to bind DisplayName in such or simmilar way? The best idea will be to use this DisplayName as key to Resources and present something from Resources.
See Question&Answers more detail:os