Blend 4 触发器渲染不起作用

发布于 2024-09-10 16:00:50 字数 332 浏览 2 评论 0原文

我在 Blend 4 中遇到了一个非常令人沮丧的错误,当我编辑带有触发器的控制模板时,如果我切换到其中一个触发器,触发器更改不会显示在设计窗格中,就像我以某种方式关闭了触发器渲染

一样步骤

在 Visual Studio 2010 中创建新的 WPF 应用程序 在混合中打开新解决方案 将“SimpleButton”拖到设计图面上 右键单击按钮>编辑样式>编辑当前 在“触发器”选项卡上,选择任意触发器,设计视图中没有任何更改

此行为仅在以下情况下出现: 样式在资源字典中定义 该模板包含在一种样式中,即,没有

人知道任何解决方法或修复程序,我在我的家庭和工作机器上都得到它

Ive got a really frustrating bug going on with Blend 4, when i edit a control template with triggers, if i switch to one of the triggers, the trigger changes are not shown in the design pane, its like ive turned off trigger rendering somehow

Reproduction Steps

Create a new WPF application in visual studio 2010
Open new solution in blend
Drag a "SimpleButton" onto the design surface
Right click on the button>Edit Style>Edit Current
On the triggers tab, select any of the triggers and nothing changes in the design view

This behaviour only appears if
The style is defined in a resource dictionary
The template is contained within a style, ie , not

Does anyone know any workarounds or fixes for this, i get it on both my home and work machines

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

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

发布评论

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

评论(2

此岸叶落 2024-09-17 16:00:50

我在表情论坛上得到了回复,他们已确认这是一个错误,这是回复

感谢您将其带到我们的
注意,我们已经确认了这一点
从 V3 行为回归,我们已经
提交了一个错误。如果您选择触发器,
尽管看起来并非如此
已选择(画板没有
立即更新),更改是
记录在树叶上。我们有
注意到您可能想要的行为
用作解决方法。如果你执行
接下来的步骤然后触发
应用于画板:

  1. 选择触发器
  2. 点击面包屑上的样式段
  3. 点击面包屑上的模板片段
  4. 重新选择触发器

我在表达式论坛上的帖子:

http://social.expression.microsoft.com/Forums/en-US /blend/thread/0f6a1422-86e5-4a2e-ad72-1f273f8671dc?prof=必需

I got a reply on the expression forums, they have confirmed it as a bug, here's the reply

Thanks for bringing this to our
attention, we've confirmed this
regression from V3 behavior and we've
filed a bug. If you select a trigger,
even though it doesn't appear to be
selected (the artboard doesn't
immediately update), changes are
recorded at leaves. And we have
noticed behavior that you might want
to use as a workaround. If you perform
the following steps then the trigger
is applied to the artboard:

  1. Select a trigger
  2. Click the style segment on the breadcrumb
  3. Click the template segment on the breadcrumb
  4. re-select the trigger

My post on the expression forums:

http://social.expression.microsoft.com/Forums/en-US/blend/thread/0f6a1422-86e5-4a2e-ad72-1f273f8671dc?prof=required

此生挚爱伱 2024-09-17 16:00:50

我遇到了完全相同的问题,我认为这是因为如果在 Visual Studio 中修改了文件,并且项目不是在表达式中构建的,我也会遇到同样的问题。我所做的是,关闭 Visual Studio,在 Expression Blend 中打开项目并在编辑模板之前构建项目。

另外,问题可能是源代码控制或团队系统,我确实注意到,如果文件未签出,则 Blend 无法正常工作,我在 Visual Studio 中签出了整个项目,然后我就能够在 Blend 中执行所有操作。

希望这两个中的任何一个都能解决您的问题。

I got exact same problem and I think it is because if the files were modified in Visual Studio and if the project was not build within the expression I used to get the same problem. What I did was, close Visual Studio, open Project in Expression Blend and build the project before editing template.

Also the problem could be source code control or team system, I did notice that if files werent checked out, blend didnt work correctly, I checked out entire project in Visual Studio then I was able to do everything in Blend.

Hope any of these two should solve your problem.

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