In a WPF I have a label:
<Label Name="lblTest" Content="This is a label"></Label>
If a was using a winform I could do this in the code behind
lblTest.Content="Changed Content";
and lblTest’s new Content would be “Changed Content”. What is WPF’s equivalent to that. I did browse the net and search stackoverflow, but I either couldn’t find it or didn’t understand what people were saying.
That is exactly the same in WPF. (It may not work if the control is not static, e.g. if it’s part of a resource or template)