Monday, 15 March 2010

wpf - How to set event trigger on toolkit DropDownButton IsOpen -



wpf - How to set event trigger on toolkit DropDownButton IsOpen -

i have dropdownbutton (a component extended wpf toolkit) has listview dropdown content. close popup part user selects item. thought accomplish through event trigger listview.selectionchanged source event, , dropdownbutton.isopen target property set false.

but i'm getting next exception when select item:

cannot resolve property references in property path 'isopen'. verify applicable objects back upwards properties.

here xaml:

<listview.triggers> <eventtrigger routedevent="listview.selectionchanged" sourcename="mylistview"> <eventtrigger.actions> <beginstoryboard> <storyboard> <booleananimationusingkeyframes storyboard.target="{binding source={relativesource mode=findancestor,ancestortype=xctk:dropdownbutton}}" storyboard.targetproperty="isopen" fillbehavior="holdend"> <discretebooleankeyframe value="false" keytime="0:0:1" /> </booleananimationusingkeyframes> </storyboard> </beginstoryboard> </eventtrigger.actions> </eventtrigger> </listview.triggers>

can tell me i'm doing wrong?

wpf xaml events triggers

No comments:

Post a Comment