xaml - How to force a WPF control or its bindings to load before it's visible -


for efficiency, appears wpf loads visual elements when necessary. if need them load when parent loads?

for example, have split-button control drop-down checklistbox. each checklistbox item bound isselected property , select command. changing isselected in viewmodel has same effect clicking row in control, once drop-down portion of control loaded. before select command doesn't react changes in isselected property (presumably) because binding , command don't yet exist. there clean way force split-button's contents load @ same time it's parent loads, or otherwise connect it's bindings @ initialization rather when first entering visual tree?


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -