混合 3 - 状态?

发布于 2024-08-08 11:20:40 字数 320 浏览 1 评论 0原文

我刚刚从 DreamSpark 下载了 Expression Blend 3(免费,因为我是学生:))并阅读了有关状态的信息。我遇到了这个,给我留下了深刻的印象。然后我自己尝试了,我创建了一个样式,创建了一个模板,只需选择一个按钮 - 但我无法使那些默认样式(例如 MouseOver、Pressed 等)出现在状态窗口中。有人可以给我一个循序渐进的初学者技巧吗?

I've just downloaded Expression Blend 3 from DreamSpark (for free because I'm a student :)) and read about states. I came across this and I was very impressed. And then I tried it on my own, I created a style, created a template, simply selected a button - but I cannot make those default styles like MouseOver, Pressed, etc. appear in the states window. Can someone give me a step-by-step beginner tip for that?

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

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

发布评论

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

评论(2

┈┾☆殇 2024-08-15 11:20:40

如果您下载并安装 WPF 工具包(2009 年 6 月发布),您将能够在 WPF 中使用状态和部件模型。

您可以在 CodePlex 下载 WPF 工具包:http://wpf.codeplex.com

If you download and install the WPF Toolkit (June 2009 Release) you will be able to use the States and Parts model in WPF.

You can download the WPF Toolkit at CodePlex: http://wpf.codeplex.com

梦开始←不甜 2024-08-15 11:20:40

VSM 目前仅适用于 Silverlight。它将出现在 .NET 4.0 版本的 WPF 中(并且处于测试阶段)。

现在在 WPF 中,您可能想要使用 DataTriggers。在 Blend 中,只需编辑您的样式,创建一个新的触发器并添加 IsMouseOver 属性并为其设置样式。

The VSM only works on Silverlight at the moment. It will be in WPF in the .NET 4.0 release (and is in the beta).

Right now in WPF, you may want to use DataTriggers. In Blend, simply edit your style, create a new Trigger and add the IsMouseOver property and set up your style for it.

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