Blend / SketchFlow 中的上下文菜单和 NavigateTo
希望这将是一个简单的,在 Sketchflow 中我试图连接一个上下文菜单以导航到另一个页面。
我创建了上下文菜单,添加了一个菜单项,右键单击“对象和时间轴”面板中的 mneu 项,然后选择“导航到”。当我运行它时,菜单会出现,但是当我单击菜单项时,它不会执行任何操作。
我以前在左键单击另一个对象时让 NavigateTo 工作,因此屏幕/连接都已就位。
这是生成的 xaml:
<ContextMenu>
<MenuItem Header="Edit">
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseDown">
<pb:NavigateToScreenAction TargetScreen="SomeScreen.Screen_3_2"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</MenuItem>
</ContextMenu>
Hoping this will be a simple one, in Sketchflow i'm trying to wire up a context menu to navigate to another page.
I've created the context menu, added a menu item, right clicked the mneu item in the Objects and Timeline panel and selected navigateto. When i run it, the menu comes up but when i click on the menu item it doesn't do anything.
I previously had the NavigateTo working when left clicking on another object, so the screens / connections are all in place.
This is the xaml that was generated:
<ContextMenu>
<MenuItem Header="Edit">
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseDown">
<pb:NavigateToScreenAction TargetScreen="SomeScreen.Screen_3_2"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</MenuItem>
</ContextMenu>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这个 xaml 适用于我认为您想要实现的场景:
This xaml works for the scenario I think you are trying to achieve:
只要 TargetScreen 的路径正确,只需将 EventName 更改为“Click”即可。 “Click”处理“MouseDown”事件。
As long as the path for the TargetScreen is correct, just change the EventName to "Click" and it will work. "Click" handles the "MouseDown" event.