As I'm new in WPF development, I came up with a problem, looks like simple, however, I couldn't solve. The problem is, how to call a method with IDataObject in a click event??
I've a method like:
public void setProperty(IDataObject obj)
PropertyGrid mygrid = new PropertyGrid();
UIElement elt = ExtractElement(obj);
Type t = elt.GetType();
string name = (string)t.GetProperty("Name").GetValue(elt, null);
mygrid.Instance = name;
I want to call this method in a click event. I don't know how to. I've tried but couldn't yet.
Any help will be appreciated regarding this. Thank you.
View Complete Post