阅读背景:

WPF:使用相同的xaml文件,后面有不同的代码

来源:互联网 

I'm writing a wpf program that needs several usercontrols that look exactly the same but perform different functions. With winForms, I could just extend the base control and add the functionality, but as far as I know, it's impossible to inherit xaml files. Is there any way I can have different codebehind classes that all use the same xaml file for their control?I'm writing a wpf program that needs several us




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: