xceedsoftware / wpftoolkit

All the controls missing in WPF. Over 1 million downloads.
Other
3.9k stars 878 forks source link

CollectionControl duplicate item doesn't support any customization of behaviour #1676

Open billw2012 opened 3 years ago

billw2012 commented 3 years ago

This button calls a function that just copies the fields of the object. This isn't always the desired behavior. For instance my objects have a unique ID associated with them, which needs to remain unique. I also have some properties that I want to perform deep copies on during duplication. An easy solution to this would just be to support the IClonable interface. Implemented in PR #1677.

XceedBoucherS commented 3 years ago

Hi,

Thank you for the idea. This feature will be part of v4.3. Thank you