WPF data binding to dictionary with enum key

前端 未结 2 1015
小鲜肉
小鲜肉 2021-01-07 06:37

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

2条回答
  •  旧巷少年郎
    2021-01-07 07:16

    replace

    (model:ModelEnum)ModelEnum.Enum1].Value
    

    with

    (model:ModelEnum)Enum1]
    

    Then try. I hope it will work.

提交回复
热议问题