Hi,
I created a simple custom editor for IList properties with a button. It's the same as the basic IList behavior but as I want to handle what's happening when I click on the button, I decided to create my own editor.
When I click on the button, I'm trying to retrieve the corresponding property in the event in the code behind but everything is wrapped in PropertyDescriptorPropertyModel... I managed to get this using the RoutedEventArgs e as ((Button)e.OriginalSource).DataContext; but I struggle to retrieve the exact object with the right type... I found the type in ValueType property but as PropertyDescriptorPropertyModel doesn't implement IConvertible, I can cast my property to its right type...
I don't know if I'm clear enough but am I missing something ?
Antoine P