父窗口标签内容未更新. [英] Parent Window label content was not Updated.
本文介绍了父窗口标签内容未更新.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的所有人,
通过子窗口分配时,父窗口"标签内容未更新
谢谢与前进
Maha
Dear All,
Parent Window label content was not Updated when assign through the child window
Thanks & advance
Maha
推荐答案
在子窗口中,使用下面的代码可以正常工作.
窗口w1 = Window.GetWindow(this);
w1.Title =新标题"
还要更改父窗口控件的值.下面使用的代码
窗口w1 = Window.GetWindow(this);
TextBlock tx =(TextBlock)w1.FindName("txt_date");
tx.Text =新值";
In child window use the below code working fine.
Window w1 = Window.GetWindow(this);
w1.Title = "new title"
Also change the parent window control values. below code used
Window w1 = Window.GetWindow(this);
TextBlock tx = (TextBlock)w1.FindName("txt_date");
tx.Text ="New values";
这篇关于父窗口标签内容未更新.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文