Hello Devz,

In my two previous posts, I was talking about how to bind an enum (the classic way and the other way). But these have two major issues. First, all the items from the Enum will be bound and displayed. And sometimes you don’t want to display all of them (like ‘None’). Secondly, you will probably prefer to display the description attribute of the Enum instead of the Enum itself in your MVVM WPF application.

Here is the Enum we will use in our example:

Now to display our description, we will use a Converter with IValueConverter:

Here is our XAML View displaying the ComboBox with the bound Enum:

And finally our ViewModel:

As you can see, this method is quite simple and have all the advantages compare to the other solutions.

Happy binding! 🙂