Posted 13 years ago
by Mary Fontana
-
Rudolph Technologies
![Avatar](https://secure.gravatar.com/avatar/0fd588160949840bf7188e3c2c588825.jpg?s=64&d=identicon&r=g)
I have added a command binding for
PropertyGrid.RemovePropertyChildCommand so that I can comfirm the delete of the property child item.
<CommandBinding
Command="{x:Static propgrid:PropertyGrid.RemovePropertyChildCommand}"
Executed="RemovePropertyChild_Executed" />
In my method:
private void RemoveChildProperty_Executed(object sender, ExecutedRoutedEventArgs e)
I can see the item I want to remove in e.Parameter.Value;
But how do you remove the item from the collection holding on to it?
Or is there another way of doing this?
Thanks,
Mary
PropertyGrid.RemovePropertyChildCommand so that I can comfirm the delete of the property child item.
<CommandBinding
Command="{x:Static propgrid:PropertyGrid.RemovePropertyChildCommand}"
Executed="RemovePropertyChild_Executed" />
In my method:
private void RemoveChildProperty_Executed(object sender, ExecutedRoutedEventArgs e)
I can see the item I want to remove in e.Parameter.Value;
But how do you remove the item from the collection holding on to it?
Or is there another way of doing this?
Thanks,
Mary