Silverlight 自定义控件
有没有关于开发 silverlight 自定义控件的好书?
我想要的是创建一个也可以充当 TreeList 控件的网格控件。您能告诉我这样的控件的良好基类是什么吗?
还有一个问题:如果我在 Silverlight 中开发一个控件,如何将我的代码重用为与 WPF 相同的控件?
必须重复代码吗?我希望不是……
再见 马蒂亚斯
are there good books on developing custom controls for silverlight?
What I want is to create a grid-control that can also act as TreeList-control. Can you tell me what is a good base-class for such a control?
And another question: If I develop a control in Silverlight, how can I reuse my code for the same controls as WPF?
Do have to duplicate the code? I hope not...
Bye
Matthias
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想要的是创建一个也可以充当 TreeList 控件的网格控件。您能告诉我这样的控件的良好基类是什么吗?
基本上,这取决于几个因素,并且您有更多选择。在我看来,我会选择使用 Panel,以防我在布局和排列过程中需要更多控制。
或者,您可以简单地从 ItemsControl 扩展并编写您自己的控件。但是,如果您计划进行更大的实现,那么我强烈建议您阅读 WPF 工具包。
代码项目上的树列表控件
还有一个问题:如果我开发一个Silverlight 中的控件,如何将我的代码重用于与 WPF 相同的控件?
在 MSDN 中的 WPF 和 Silverlight 之间共享代码
What I want is to create a grid-control that can also act as TreeList-control. Can you tell me what is a good base-class for such a control?
Basically, it depends on several factor and you have more options. In my opinion, I would choose to go with Panel, incase if I need more control during layout and arrange process.
Or else, you could simply extend from the ItemsControl and write you own control. But if you are planning for much bigger implementation, then I would highly suggest you to read the implementation of GridControl available in the WPF Toolkit.
Tree List Control On Code Project
And another question: If I develop a control in Silverlight, how can I reuse my code for the same controls as WPF?
Sharing Code Between WPF and Silverlight From MSDN