In WPF DataGridColumnHeader , we can set command binding . how can i do the same thing with XAMDataGrid ?
Thanks Ethan.
Hello Ethan,
The LabelPresenter has property CommandBindings and you can specify the binding for it. A possible approach to do this is :
LabelPresenter lp = Infragistics.Windows.Utilities.GetDescendantFromType(xdg, typeof(LabelPresenter), false) as LabelPresenter;
lp.CommandBindings.Add(…);
For further reference you can also check the following link:
http://windowsclient.net/learn/video.aspx?v=288066
Please note, we are making efforts to ensure all posts are addressed by an Infragistics expert. We believe that the other community members could benefit from this thread as well.
Feel free to write me if you need further assistance.