Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: Property Grid disable update on keystroke.

$
0
0
I'm using version 2.4 of the community edition. I have a generic property grid with auto-generated properties. For my 'double' properties, every time I type in the editor box it triggers a value change. This in turn, auto-selects the text so that my next keystrokes overides it. So, if i want to type '123', the grid will update one '1', then override with '2' then override with '3'. So instead of 123, I get 3. How can I disable a trigger on every keystroke and only make it update when it loses focus or on 'Enter'?

Making a custom editor was unssucessful as it wasn't even recognized by property grid. This is related to this issue: https://wpftoolkit.codeplex.com/discussions/397185.

Basically, the propertygrid assembly doesn't have any reference to my external assembly where my selected object and it's custom editor are implemented. The object is sent to the propertygrid via EventAggregator.

How can I resolve this without implementing a custom ITypeEditor?

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>