Hi,
By default, for a property of type double, the editor in the propertyGrid will be a PropertyGridEditorDoubleUpDown, which is a DoubleUpDown.
Starting at v2.5, a new property is available for
-NumericUpDowns
-DateTimeUpDown
-DateTimePicker
-TimePicker
-TimeSpanUpDown
The new property is called "UpdateValueOnEnterKey" and is False by default. If you set it to true, the synchronization between "Value" and "Text" will only be done on a Enter key press, or a lostFocus.
So you could use a specific editor for double :
You can find the Plus Edition here : https://wpftoolkit.codeplex.com/wikipage?title=Compare%20Editions
By default, for a property of type double, the editor in the propertyGrid will be a PropertyGridEditorDoubleUpDown, which is a DoubleUpDown.
Starting at v2.5, a new property is available for
-NumericUpDowns
-DateTimeUpDown
-DateTimePicker
-TimePicker
-TimeSpanUpDown
The new property is called "UpdateValueOnEnterKey" and is False by default. If you set it to true, the synchronization between "Value" and "Text" will only be done on a Enter key press, or a lostFocus.
So you could use a specific editor for double :
<toolkit:PropertyGrid x:Name="_propertyGrid"
PropertyValueChanged="_propertyGrid_PropertyValueChanged_1">
<toolkit:PropertyGrid.EditorDefinitions>
<toolkit:EditorTemplateDefinition TargetProperties="{x:Type sys:Double}">
<toolkit:EditorTemplateDefinition.EditingTemplate>
<DataTemplate>
<toolkit:PropertyGridEditorDoubleUpDown UpdateValueOnEnterKey="True"
Value="{Binding Value}"/>
</DataTemplate>
</toolkit:EditorTemplateDefinition.EditingTemplate>
</toolkit:EditorTemplateDefinition>
</toolkit:PropertyGrid.EditorDefinitions>
</toolkit:PropertyGrid>
I suggest you wait for the next community Edition : v2.5 or buy the Plus Edition, which is 2 versions ahead at v2.6 (with v2.7 to be released shortly).You can find the Plus Edition here : https://wpftoolkit.codeplex.com/wikipage?title=Compare%20Editions