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
|
Hi, We are using WPF Elements 1.0 and are experiencing a strange behavior concerning the value constraining feature. The IntegerTextBox is placed inside a Window which has an Ok Button (IsDefault = true).
Is this a known bug that has been fixed in a more recent release of WPF Elements? Regards, Dominik |
|
|
Hello Dominik Does the IntegerTextBox you've got have a RangeConstraintMode property? If so, you can set this property to RangeConstraintMode.OnLostFocusOrReturn. This will allow the range constraint to be applied when the 'Enter' key is pressed. This may swallow the key down event, so you'll also need to listen to PreviewKeyDown on the window or integer text box to know when the Enter key is pressed to close the dialog. If you do not have this property, you'll need to upgrade to the latest version of WPF Elements. Jason Fauchelle |
|