This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Do you have examples for displaying a context menu? I have set the selection to extended cells selection and what I'd like to do is implement some functionality such as FillDown, FillSeries in the same way as Excel. Any pointers for hooking up a context menu that would be available for cells in a particular column would be appreciated. Thanks, David btw, using WPF Elements 7:) Great to see another major release |
|
|
Hello David If the ContextMenu is simple (i.e. doesn't change much in all sorts of different scenarios), then you can simply set the ContextMenu property of the DataGrid itself. If you need a different ContextMenu setup for rows and cells and column headers, you'd need to create styles/templates for the necessary parts and set the ContextMenus on there. We don't have a ContextMenu specific sample, but there is a project linked on this blog post that may help creating custom styles. http://www.mindscapehq.com/blog/index.php/2013/10/8/building-wpf-applications/ Additionally all the styling code for the DataGrid is available in the themes folder at the install directory of WPF Elements. Thanks for getting WPF Elements 7.0 :) -Jason Fauchelle |
|