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

Commented Unassigned: DoubleUpDown.IsEditable gone? [19754]

$
0
0
From discussion:
https://wpftoolkit.codeplex.com/discussions/444607

IsReadOnly property has replaced "IsEditable" since v1.6.
But the current property (IsReadOnly) disable all input.
The legacy behavior was to only disable text input, keeping the button spinner working.
(To confirm the legacy behavior with the keyboard arrows and mouse wheel)

We should have the option to prevent text input without preventing the user to spin.

Probably something like a "AllowTextInput" property.
Comments: ** Comment from web user: emartin **

In the meantime, a workaround would be to subclass DoubleUpDown and force the IsReadOnly of the textbox:

```
public class MyDoubleUpDown : DoubleUpDown
{
public override void OnApplyTemplate()
{
base.OnApplyTemplate();
if( this.TextBox != null )
{
this.TextBox.IsReadOnly = true;
}
}
}
```


Viewing all articles
Browse latest Browse all 4964

Trending Articles



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