Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Unable to bind to control within stackpanel

$
0
0

This is difficult to explain but I'll try my best.  I have a grid with a number of stackpanels (15 total).  Each stackpanel has a variety of controls such as comboboxes, textboxes, and checkboxes.  All controls bind correctly to underlying data model except for checkbox controls in 4 of the stackpanels.

These 4 stackpanels are unique in that they are side-by-side instead of one on top the other like the others.  And the controls are all checkboxes and not a variety.  None of the checkboxes bind correctly.  If the underlying data is set to"1", then I expect the appropriate checkbox to be checked.  If "0", then unchecked.

If I move the controls out of the 4 stackpanels and into another stackpanel, then the controls bind correctly.

I have an image that may help explain this better but I have to wait until my account is verified before posting it. 

Hopefully someone has experienced this problem before and will share how they corrected it.  Do I have too many stackpanels and need to use some other container control?

Thanks.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>