This is a migrated thread and some comments may be shown as answers.

ContextMenu with a list of images

1 Answer 44 Views
Menu
This is a migrated thread and some comments may be shown as answers.
jnh999
Top achievements
Rank 1
jnh999 asked on 13 Oct 2010, 02:15 PM

I want to have a ContextMenu item that show a list of selectable images when user clicks the menu item.  I didn’t find one readily available.  Is there something there that I can use or I have to write my own?  I am new to SilverLight and RadControls for SilverLight.  Thanks for any advice.

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 15 Oct 2010, 12:01 PM
Hello jianing huang,

Thank you for contacting us.

There are 2 options:
1. If you bind the ItemsSource of your ContextMenu to a source you could predefine the template of the items, as explained in this help article: http://www.telerik.com/help/silverlight/radcontextmenu-populating-with-data-binding-to-dynamic-data.html
2. If you are using static items, you could just put the image as a content of the MenuItem, for example:
<telerik:RadContextMenu.ContextMenu>
            <telerik:RadContextMenu x:Name="ContextMenu">
                <telerik:RadMenuItem>
                            <Image Source="Chrysanthemum.jpg"/>
                </telerik:RadMenuItem>
             </telerik:RadContextMenu>
</telerik:RadContextMenu.ContextMenu>

Hope this information helps. If you need further assistance please let us know.

All the best,
Konstantina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Menu
Asked by
jnh999
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or