如何在设计器中为自定义控件启用“编辑其他模板”选项 [英] How to enable Edit Additional Template option in designer for a custom control
本文介绍了如何在设计器中为自定义控件启用“编辑其他模板”选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hi Team,
我有一个派生自FrameworkElement的自定义控件,带有一些自定义模板属性。我想在设计器中使用编辑附加模板选项来获取这些模板,就像在TabControl中一样。但我只获得编辑样式选项。
您能告诉我如何在我的控件中启用编辑其他模板选项。
I am having a custom control derived from FrameworkElement, with some customization template properties. I would like to get those templates using Edit Additional Template option in designer as like in TabControl. But I am getting only Edit Style option. Could you please tell how to enable Edit Additional Template option in my control.
提前致谢
问候,
Aiswarya
推荐答案
HI Aishwarya Patturaja,
根据您的描述,我建议您可以为其他任何人提供所有必要的代码段,以便能够从头开始重现您的问题以及详细说明关于结果,包括任何异常消息,或者您可以上传可运行的
演示(包括您的测试材料)。我们可以下载它并进行调试。这将有助于我们快速分析您的问题。
感谢您的理解。
最好的问候,
Yong Lu
HI Aishwarya Patturaja,
According to your description, I suggest you can include all necessary code snippets for anyone else to be able to reproduce your issue from scratch along with a detailed description about the results including any exception messages or you can upload a runnable demo(Including your test material). We can download it and debugging. This will help us quickly analyze your problem.
Thank you for your understanding.
Best Regards,
Yong Lu
这篇关于如何在设计器中为自定义控件启用“编辑其他模板”选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文