开发者

C# - Silverlight - MVVM

开发者 https://www.devze.com 2022-12-31 20:13 出处:网络
I wa开发者_StackOverflow中文版nt to use UserControl as the base for my views, but I cannot add functionality to my views because they are based on UserControl.

I wa开发者_StackOverflow中文版nt to use UserControl as the base for my views, but I cannot add functionality to my views because they are based on UserControl.

How do I create my own view class by using a subclassed version of UserControl.


You put them in the subclassed version of UserControl, and implement an interface which denotes the abilities the class has, so the ViewModel can be used with any type of View by simply using the interface.

0

精彩评论

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