This question is locked. New answers and comments are not allowed.
Hi all,
I'm new to RadialMenu. So I have a question.
In my App I try to use the RadialMenu as context menu in an image list.
My XAML declaration looks like this:
The menu is working fine. But I need to close the menu automatically after a menu item command was executed. For example I click/tab on "Remove" menu item I need to close the menu and hide the MenuButton progammatically. How to do?
The behavior should be like normal context menu behvior: click/tab to open -> click/tab menu item -> close context menu.
Regards,
Ralf
I'm new to RadialMenu. So I have a question.
In my App I try to use the RadialMenu as context menu in an image list.
My XAML declaration looks like this:
<
GridView
x:Name
=
"attachmentsView"
Grid.Column
=
"3"
Grid.Row
=
"1"
ItemsSource
=
"{Binding Path=Attachments}"
Margin
=
"0,0,39,0"
>
<
GridView.ItemTemplate
>
<
DataTemplate
>
<
StackPanel
>
<
Image
Source
=
"{Binding Path=LocalPath}"
Stretch
=
"Uniform"
Width
=
"300"
>
<
telerik:RadRadialContextMenu.Behavior
>
<
ecsUI:CustomPositionTriggerBehavior
AttachTriggers
=
"PointerPressed"
/>
</
telerik:RadRadialContextMenu.Behavior
>
<
telerik:RadRadialContextMenu.Menu
>
<
telerik:RadRadialMenu
Width
=
"240"
>
<
telerik:RadialMenuItem
Header
=
"Change Name"
IconContent
=
""
Selectable
=
"False"
Command
=
"{Binding ChangeAttachmendNameCommand, Source={StaticResource Commands}}"
/>
<
telerik:RadialMenuItem
Header
=
"Remove"
Selectable
=
"False"
IconContent
=
""
Command
=
"{Binding DeleteAttachmentCommand, Source={StaticResource Commands}}"
/>
</
telerik:RadRadialMenu
>
</
telerik:RadRadialContextMenu.Menu
>
</
Image
>
<
Border
Background
=
"White"
>
<
TextBlock
Text
=
"{Binding Path=Name}"
Margin
=
"5"
/>
</
Border
>
</
StackPanel
>
</
DataTemplate
>
</
GridView.ItemTemplate
>
</
GridView
>
The menu is working fine. But I need to close the menu automatically after a menu item command was executed. For example I click/tab on "Remove" menu item I need to close the menu and hide the MenuButton progammatically. How to do?
The behavior should be like normal context menu behvior: click/tab to open -> click/tab menu item -> close context menu.
Regards,
Ralf