WPF A good way to make a view/edit control?

前端 未结 4 2078
挽巷
挽巷 2021-02-10 04:18

this is just a question to discuss - what is the best way to make a view/edit control in WPF? E.g. we have an entity object Person, that has some props (name, surname, address,

4条回答
  •  一整个雨季
    2021-02-10 04:33

    Sounds like a job for a DataTemplateSelector to me. If you would rather switch the individual controls in place I would do something similar to what Veer suggested.

提交回复
热议问题