如何从父窗口中的事件刷新子窗口? [英] How to refresh the child window from an event in parent window?

查看:456
本文介绍了如何从父窗口中的事件刷新子窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个名为Window1和Window2的窗口。当在Window1中触发事件时,Window2应该出现并显示一些内容。然后,当在Window1中触发相同的事件时,当前打开的Window2实例应该刷新自身而不是打开Window2的新实例。我正在使用VS 2012工作c#.net wpf

I have two windows named Window1 and Window2. When an event is triggered in Window1, Window2 should appear and display something. Then when the same event is triggered in Window1, the currently opened instance of Window2 should refresh itself instead of opening a new instance of Window2. I am working on c#.net wpf using VS 2012

推荐答案

我的过去的答案可以给你一个想法:在另一个窗口文本框中重复wpf Datagrid数据 [ ^ ]。



-SA
My past answer can give you the idea: Repeat wpf Datagrid data in another window text boxes[^].

—SA


这篇关于如何从父窗口中的事件刷新子窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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