我在Page1.xaml.cs(代码隐藏)中有一个事件,该事件需要更改ViewModel中的所有属性。这是一个示例:(Page1.xaml.cs)public Page1(){ InitializeComponent(); example.Event += example_Event;}private void example_Event(...){ // here I want to change all Properties in my ViewModel}我怎样才能做到这一点?编辑我有一个显示.ppt的WebBrowser-Control。触发此事件后,我想更新ViewModel中的所有属性:xaml.cs:private void powerPointBrowser1_LoadCompleted(object sender, NavigationEventArgs e) { //... oPPApplication.SlideShowNextSlide += ppApp_SlideShowNextSlide; //Event that gets triggered when i change the Slide in my WebBrowser-Control }private void ppApp_SlideShowNextSlide(PPt.SlideShowWindow Wn) { // here i dont know how to get access to my Properties in my VM (i want to call OnChangedProperty(//for all properties in my VM)) }
1 回答
- 1 回答
- 0 关注
- 166 浏览
添加回答
举报
0/150
提交
取消