Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: WPF wpftoolkit
Hi all
 
I'm using IntegerUpDown from the WPF toolkit and I'm binding the minimum, maximum, and value properties.
 
When the view loads, some of the values in the IntegerUpDown control display "0" (invalid input which I can't touch) even though the minimum is set via the binding to "1" (I can't touch this either).
 
Why does this happens?
Why doesn't the minimum enforces the minimum check on screen load?
When I scroll down the view probably refreshes as then the app crashes.
 
Any idea on this issue will be great
 

Note: The data is received from a server which can communicate with a parent application where in some cases this value is valid. I hope if I'll know what is causing this I'll know how to solve this the "right" way.
Posted 10-Dec-12 5:00am
Shahare860
Edited 10-Dec-12 10:31am
v3
Comments
Sergey Alexandrovich Kryukov at 10-Dec-12 17:50pm
   
Idea? Sure: provide some code sample.
--SA

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I ran a test:
I added a converter to each property and found that the order of the properties
when writing the control in xaml is the order how they are bound.
My control was written as follow:
 
    <toolkit:IntegerUpDown Value="binding" Min="binding" Max="binding"/>
 
Once I inverted the order of the properties as follow:
 
    <toolkit:IntegerUpDown Min="binding" Max="binding" Value="binding"/>
 
The screen crashes on load as expected.
 
Hope this helps.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 George Jonsson 175
1 Kornfeld Eliyahu Peter 169
2 Zoltán Zörgő 139
3 PIEBALDconsult 130
4 OriginalGriff 120
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,342


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 11 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100