Assuming I have the following:
enum Dias {Segunda, Terça, Quarta, Quinta, Sexta, Sábado, Domingo};
How can I use the enumerator Dias
as ItemSource
of a ComboBox
in a WPF application? For example:
<ComboBox Name="ComboDias" ItemsSource="{Binding Path=Dias}"/>
In this way, it does not work as expected. I would like the items to be "Monday," "Tuesday," "Wednesday," "Thursday," "Friday," "Saturday," and "Sunday."