Binding to attributes
问题 I have class public class Car { [Description("name of the car")] public string Name { get; set; } [Description("age of the car")] public int Age { get; set; } } is there any possibility to bind Description attribute to Label content. The solution what I'm looking for shouldn't require to instantiate Class object. 回答1: It won't be a proper binding (which is not necessary for static data anyway) but you can easily create a MarkupExtension to retrieve it, just pass the type and the property name