如何通过设计界面向触发器添加异常 [英] How to add exceptions to Triggers through design interface
问题描述
是否可以从Expression Blend设计界面添加触发器的例外?
Is it possible to add exceptions to triggers from the Expression Blend design interface?
场景是 - 我有一个故事板和一个触发事件来开始故事板屏幕加载。现在我需要一个例外,只有当屏幕因为从另一个屏幕"导航到"而加载时,故事板才会开始。
The scenario is - I have a storyboard and a trigger event to begin the storyboard when the screen gets loaded. Now I need an exception that the storyboard begin only if the screen is loaded as a result of 'navigate to' from another screen.
如果你知道这项技术,请告诉我。
Please let me know if you know the technique.
提前致谢。
-Seema
推荐答案
您好Seema。
Hi Seema.
如果我理解正确,您可能想尝试从'资产'中添加'ControlStoryboardAction'行为'Panel。
If I understand correctly, you may want to try adding a 'ControlStoryboardAction' behavior from your 'Assets' Panel.
将其添加到'LayoutRoot'网格容器中,然后从'Properties'面板>'Trigger'面板将'EventName'设置为'Loaded'。
Add it to the 'LayoutRoot' grid container and from the 'Properties' panel >'Trigger' panel set the 'EventName' to 'Loaded'.
我希望这适合你。
这篇关于如何通过设计界面向触发器添加异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!