I have a solution with a couple of projects. In one project, is my model that has an enum called ModelEnum.
Then in my WPF project I have a ViewModel which has a Dic
Just to add to the potential pitfalls with this, I had issues binding without the explicit "Path="
i.e.
{Binding ValuesDictionary[(model:ModelEnum)Enum1]}
doesn't work, but:
{Binding Path=ValuesDictionary[(model:ModelEnum)Enum1]}
works as expected, although the designer (or maybe ReSharper) still complains about syntax errors.