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

ContextMenu

1 Answer 53 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dev
Top achievements
Rank 1
Dev asked on 06 May 2010, 07:13 PM
Where I can find a complete example to load a contextMenu by Bindind with images and muilti level.

Thanks

1 Answer, 1 is accepted

Sort by
0
Ross Wozniak
Top achievements
Rank 1
answered on 07 May 2010, 07:28 PM
Not sure if it would help, but you could download the source for my Task-It application at http://bit.ly/bhgRLi I use a two-level context menu that is associated with a RadGridView. It is in Grid.xaml in the Views directory of the TaskIt.Modules.Tasks project (you'll see it visually if you run the app, go to the Tasks page and right-click any item in the RadGridView).

In this context menu I am binding the Icon, Command and Visibility properties, though I am doing it via the MVVM pattern. So the properties I am binding to live in the ListViewModel class in the same project's ViewModels directory.

You could step through the code to see how I am obtaining the Image object.

Ross
Tags
General Discussions
Asked by
Dev
Top achievements
Rank 1
Answers by
Ross Wozniak
Top achievements
Rank 1
Share this question
or