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
Post a Comment