This question is locked. New answers and comments are not allowed.
Hi,
I have a RadDropDownButton whose dropdown content contains Border and a RadButton inside that border.
I have attached a EventTrigger on Click event of the RadButton like this
<i:EventTrigger EventName="Click">
<ei:ChangePropertyAction
TargetObject="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=telerik:RadDropDownButton}}"
PropertyName="IsOpen" Value="False"/>
</i:EventTrigger>
Basically, I want to close the dropdown on click of this button.
FYI: If I specify Elementname in my TargetObject binding, it works fine. But this will defeat the whole purpose of Templates.
Thank you for your help
Sameer