Hi everyone,
I have a tabcontrol which exists out of 6 tabs. For each tab I set the Datacontext. When I click on a tab then it opens and shows me the textboxes (which are bound to the datacontext) and the data is shown.
When I close the screen then I run some test to see if every textbox is not empty. I do this by calling MyTextbox.Text etc.
Now there is one strange thing. When the check runs only text is found in textboxes which are shown on the screen once. F.i. if I have values in a textbox on tabpage 6 but I don't open this tab then the system thinks that these textboxes are still empty. In other words the datacontext is not filling in these textboxes? The textboxes are only filled (linked to the datacontext) when they are shown on the screen?
I have a tabcontrol which exists out of 6 tabs. For each tab I set the Datacontext. When I click on a tab then it opens and shows me the textboxes (which are bound to the datacontext) and the data is shown.
When I close the screen then I run some test to see if every textbox is not empty. I do this by calling MyTextbox.Text etc.
Now there is one strange thing. When the check runs only text is found in textboxes which are shown on the screen once. F.i. if I have values in a textbox on tabpage 6 but I don't open this tab then the system thinks that these textboxes are still empty. In other words the datacontext is not filling in these textboxes? The textboxes are only filled (linked to the datacontext) when they are shown on the screen?