WPF:功能区按钮与页面控件的绑定 [英] WPF: Ribbon Button binding with Page Controls

查看:78
本文介绍了WPF:功能区按钮与页面控件的绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设计一个WPF应用程序,该应用程序在主窗口中具有功能区选项卡.主窗口还包含使用Frame的Page导航.

该页面包含一个简单的数据输入内容(文本框,组合框),用户可以在其中输入.用户完成输入数据后,操作/事件应从功能区按钮开始(验证用户数据,插入数据库等).
将功能区控件与页面控件绑定在一起的一些建议会有所帮助...
谢谢.

Hi, I am designing a WPF application with ribbon tab in Main Window. The Main window alos contains a Page navigation using Frame.

The page contains a simple data entry contents (textbox, combo box) where user can input. Once user finishes inputing data, the action/ event should start from Ribbon button (validate user data, insert into database etc).
some advise on binding the ribbon control with page controls will be helpful...
Thanks.

推荐答案

一种方法是:

您可以发布和订阅活动.

喜欢

eventAggregator.GetEvent< menuclickpropagationevent>().Publish(title);


eventAggregator.GetEvent< menuclickpropagationevent>().订阅
One way is:

you can publish and subscribe the event.

like

eventAggregator.GetEvent<menuclickpropagationevent>().Publish(title);


eventAggregator.GetEvent<menuclickpropagationevent>().Subscribe


这篇关于WPF:功能区按钮与页面控件的绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆