StyleTypedProperty属性在WinRT设计器中无法用于自定义控件

时间:2015-02-26 06:18:02

标签: wpf xaml windows-runtime windows-store-apps winrt-xaml

我在WinRT中创建了自己的自定义控件,它有自己的模板。我的自定义控件包含许多内部自定义元素(小控件),它们也有自己的模板。

然后我尝试通过StyleTypedProperty属性在Visual Studio中为所有模板提供设计器编辑工具,结果对我失败。在设计器中,EditTemplate适用于我的Control但EditAdditionalTemplates不包含我的控件的内部元素的模板。

注意:WPF设计器中的工作正常。

任何人都遇到过这类问题或者请提出一些建议吗?

[StyleTypedProperty(Property = "PopupStyle", StyleTargetType = typeof(Popup))]
public class MyControl : Control
{
}

0 个答案:

没有答案
相关问题