Posted 13 years ago
by Mary Fontana
-
Rudolph Technologies
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