如何通过绑定列出类的所有属性名称
<ListBox>
<TextBlock Name="{Binding WHAAAAT???!}" />
</ListBox>
班级:
public class DaysOfWeek
{
public bool Monday {get; set;}
public bool Tuesday { get; set; }
public bool Wednesday { get; set; }
public bool Thursday { get; set; }
public bool Friday { get; set; }
public bool Saturday { get; set; }
public bool Sunday { get; set; }
}
我想将此内容放在列表框中。请在这件事上给予我帮助。
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
感激的。