简体   繁体   English

用于Windows Embedded的Silverlight的TabControl

[英]TabControl for Silverlight for Windows Embedded

I need a tab control for a Silverlight for Windows Embedded application I am task with developing. 我需要开发的Windows Embedded应用程序Silverlight的选项卡控件。 It's not a control that is supported out of box, so I am hopeful that it may be possible to build a custom control from scratch. 它不是开箱即用支持的控件,因此我希望可以从头开始构建自定义控件。

As a complete newbie to Silverlight and XAML, can anyone point me to any helpful tutorials/resources? 作为Silverlight和XAML的完全新手,有人可以向我指出任何有用的教程/资源吗?

My searches to date have not been much use. 到目前为止,我的搜索没有太大用处。

Thanks 谢谢

Your best approach very much depends on what you actually need the tab control to do. 最佳方法很大程度上取决于您实际需要使用标签控件执行的操作。 If you simply need a tab control that looks a little different from the default, your best bet is almost certainly to just re-use one of the existing tab controls (eg, from the Silverlight Toolkit ), and modify its control template to make it look like what you want. 如果您只需要一个看起来与默认选项卡稍有不同的选项卡控件,则最好的选择是几乎重用现有的一个选项卡控件(例如,来自Silverlight Toolkit的控件),然后修改其控件模板使其成为默认选项卡看起来像你想要的。 You may also be able to use your copy of the template to make any behavior changes you need as well. 您也许还可以使用模板的副本来进行所需的任何行为更改。

But even if you need fairly dramatic changes that can't be supported in this fashion (I would be quite surprised if this were the case, though stranger things have happened), my strong recommendation would still be to start with the tab control from the Silverlight toolkit, and modify the source as necessary. 但是,即使您需要以这种方式无法支持的相当大的更改(如果发生这种情况,我也会很惊讶,尽管发生了一些奇怪的事情),我的强烈建议仍然是从选项卡控件开始Silverlight工具箱,并根据需要修改源。 It will be much simpler than building one from scratch. 这比从头开始构建一个简单得多。

There's an example of how to modify the template of the Silverlight Toolkit Tab Control here . 还有如何修改Silverlight工具包选项卡控件的模板的例子在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM