Showing multiple Context menu in WPF grid row?

Triggers on DataGrid can help you here. Code below is just for illustration ...

Up vote 0 down vote favorite 1 share g+ share fb share tw.

I wish to have two context menu in grid view in my WPf based desktop application . Currently I am able to display one context menu, but I want to show context menu 1 on one condition and context menu 2 on another condition . How to do that?

I am usign following XAML code to show grid and context menu c# .net wpf xaml link|improve this question asked Aug 8 '11 at 10:00Abhishek Gupta1,218324 78% accept rate.

Triggers on DataGrid can help you here. Code below is just for illustration ... ... Ofcourse condition1 and condition2 must be exclusive of each other. If both of them are applicable on the data grid then due to order Condition2ContextMenu will take the precedence.

Let me know if this helps...

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions