This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hey, I'm currently using the NumericUpDownEditorKey control to display seconds as a timeout but the underlying data is in milliseconds is there a way I can write a Converter to convert to values to/from Below is my xoml <ms:PropertyEditor PropertyName="Timeout" EditorTemplate="{StaticResource {x:Static ms:PropertyGrid.NumericUpDownEditorKey}}"><ms:PropertyEditor.Style> <Style TargetType="{x:Type ms:NumericUpDown}" > <Setter Property="Minimum" Value="2" /><Setter Property="Maximum" Value="10" /> </Style> </ms:PropertyEditor.Style> </ms:PropertyEditor> |
|
|
|
|
You can't do that by styling the NumericUpDownEditor. Instead you will need to create a custom template which uses the NumericUpDown control, and specify your converter in the NumericUpDown Value binding. |
|
|
|