开发者

WPF LOB Application - Client Specific Control Changes

开发者 https://www.devze.com 2023-02-16 02:58 出处:网络
I have written a WPF Line of Business application that has a particular sections which need to have a slightly different user interface (swapping out some checkboxes for a combobox) for a particular c

I have written a WPF Line of Business application that has a particular sections which need to have a slightly different user interface (swapping out some checkboxes for a combobox) for a particular customer.

I want to avoid having to maintain multiple copies of this window. Is there a way that I can make use of a resource(s) (style, template, etc) so that the content for this particular section can refer to a client specific resource file?

I hope that this question makes sen开发者_StackOverflow社区se.

EDIT: Is there an answer somewhere in using control templates?


You can create two UserControls that represent the two sections and swap them programatically or through binding.

0

精彩评论

暂无评论...
验证码 换一张
取 消