I'm trying to create a textbox and associated button inside a PropertyGridPropertyItem. I have managed to do this using a DataTemplate binded to the items ValueTemplate, similar to the "Custom Factory (Dictionary)" example.
The problem is trying to create or handle the click event from the button. Looking at the Custom Factory example a Command is used but there is some serious layers of complexity used which loses me. Is there a simpler way or do you have an example without the same level of binding?
Additionally I'm trying to determine when PropertyGridPropertyItem text entry changes.TextInput, PreviewTextInput, KeyDown, KeyUp events don't seem to fire. PropertyChanged fires when the focus is lost but fires 4 times. I presume there's something I've not setup?
Is it possible to detect when data is keyed in to PropertyGridPropertyItem without having to loose the focus, similar to textbox PreviewTextInput? The PreviewTextInput event of the PropertyGrid containing the various PropertyGridPropertyItem fires when text is entered but I don't know which item changed.
[Modified 5 years ago]