Best way to propagate VisualState changes
hi,
i facing scenario unsure best way handle.
scenario:
- controla has 2 two custom visualstates, let’s call them “stateon” , “stateoff”.
- i apply template on controla, let’s call “templatea”.
- “templatea” has 1 control under of type controlb (who’s unaware of stateon/off).
- controlb has template handles visualstate changes of controla, namely, stateon , stateoff.
problem:
controlb not receive changes visualstates fired on controla, no visual changes happen.
i think problem has root element being control (controlb), doesn’t fire gotostate on desired states. however, i’m wondering simplest/cleanest way propagate controla’s visualstate changes controlb.
let me know if need more details.
thanks help!
henry
in limited experience of control developing, can think of nothing else call controlb.gotoxxxxstate.
if controlb used here, dont need no states, let visualstate animation of controla manipulate it's ui properties.
Silverlight > Silverlight Controls and Silverlight Toolkit
Comments
Post a Comment