Sketchflow 组件目标父状态

发布于 2024-09-04 17:09:41 字数 466 浏览 1 评论 0原文

我在 Expression Blend 4 RC 中使用 Sketchflow(尽管这也与 Blend 3 相关)。

我有一个带有数据网格的屏幕(主屏幕),并且有一个“新建”按钮。

我有一个组件屏幕,它有一个通用表单(GenericForm)和一个“保存并关闭”按钮。

我在主屏幕上有两个状态:

State1(和默认):GenericForm 可见性设置为隐藏

State2:GenericForm 可见性设置为可见

主屏幕上的“新建”按钮具有:活动状态 = State2,这意味着按下“新建”按钮时,它将 MainScreen 的状态更改为 State2(其中 GenericForm 组件可见)。

我的问题是我无法将 GenericForm 上的“保存并关闭”按钮链接到主屏幕上的 State1。实际上,我希望能够按“保存并关闭”并将主屏幕的状态设置为 State1。

有什么想法吗?

I'm using Sketchflow in Expression Blend 4 RC (although this is relevant to Blend 3 too).

I have a screen with a datagrid on it (MainScreen) and there's a "New" button.

I have a component screen that has a generic form (GenericForm) and a "Save and close" button.

I have two states on MainScreen:

State1 (and default): GenericForm visibility set to Hidden

State2: GenericForm visibility set to Visible

The "New" button on MainScreen has: Active State = State2, meaning when the "New" button is pressed, it changes the state of MainScreen to State2 (where the GenericForm component is visible).

My problem is that I cannot link the "Save and close" button on GenericForm to State1 on MainScreen. In effect I would like to be able to press "Save and close" and for the MainScreen to set its state to State1.

Any ideas?

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

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

发布评论

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

评论(1

冷弦 2024-09-11 17:09:41

您使用的是 WPF 还是 Silverlight?在 WPF 中,您可以使用路由事件将类似的事件冒泡到父控件中,我在这里发布了一个简单的示例:
http://chuckhays.net/2010/05/21 /very-simple-routed-event-example/

如果您使用 Silverlight,我可以尝试提出另一个可以帮助您的示例。

Are you using WPF or Silverlight? In WPF you can use routed events to bubble up an event like that into the parent control, I posted a simple example here:
http://chuckhays.net/2010/05/21/very-simple-routed-event-example/

If you are using Silverlight, I can try to come up with another example that will help you.

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