I have bound a variable in WPF
with a TextBlock
. Everything was working fine. Here is the relevant code for this :
<TextBlock Text="{Binding LblContent, UpdateSourceTrigger=PropertyChanged}"></TextBlock>
I set the value of LblContent
when applications starts.
LblContent= string.Format("{0}", common.ProjectTeam);
It is working on my physical machine in windows 7.
But when I run the same program on Virtual Machine having windows 7 the value of LblContent
is not updated.
I checked the same thing on Windows 8. And it is working correctly in both - physical and virtual machines.
Why the value of bound variable is not get updated in virtual machine?
I got the solution of this problem.
Value of textblock was not updating in vmware of windows 7. When i replace textblock with Label, its working fine.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.