This question is locked. New answers and comments are not allowed.
Let's say I have RadMenu that has an ItemTemplate defined like this...
The RadMenuItem's will have a textblock followed by two buttons. I can click on the RadMenuItem and the RadMenu will behave normally, however, if I click on the buttons, I would also like the RadMenu to close. How can I accomplish this?
<Rad:HierarchicalDataTemplate x:Key="it"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="21" /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="1*"/> </Grid.ColumnDefinitions> <StackPanel Orientation="Horizontal"> <TextBlock Content="{Binding MyCaption}" /> <Button Content="Button1" Command="..." CommandParameter="..." /> <Button Content="Button2" Command="..." CommandParameter="..." /> </StackPanel> </Grid> </Rad:HierarchicalDataTemplate>The RadMenuItem's will have a textblock followed by two buttons. I can click on the RadMenuItem and the RadMenu will behave normally, however, if I click on the buttons, I would also like the RadMenu to close. How can I accomplish this?