UserControl VisualStates 不会出现在 Blend 中

发布于 2024-08-30 21:29:38 字数 125 浏览 3 评论 0原文

Blend 4 中的“状态”窗格似乎不显示使用 TemplateVisualState 属性在 UserControl 上声明的 VisualState。这是可以预料的吗?如果是的话,为什么?在 Blend 中手动创建状态似乎工作正常。

The States pane in Blend 4 does not appear to show the VisualStates declared on a UserControl using the TemplateVisualState attribute. Is this to be expected and if so why? Creating the States manually in Blend seems to work correctly.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

扭转时空 2024-09-06 21:29:38

用户控件通常不会像常规控件那样被设计为可以修改或重新模板化。

大多数时候,如果您希望控件可编辑并提供替代动画(例如通过状态面板),您将需要构建从适当的自定义控件类型派生的东西。

User controls aren't typically designed to be modified or re-templated the same way that regular controls are.

Most of the time where you want a control to be editable and offer alternative animations (through the states panel for instance) you're going to want to build something that derives from a proper custom control type.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文