Code Monkey home page Code Monkey logo

Comments (7)

timheuer avatar timheuer commented on August 26, 2024

I am not aware of this. How is it being used and what is the exception. The test app has no exceptions

from callisto.

zipswich avatar zipswich commented on August 26, 2024

I came here per a suggestion from an MSFT forum moderator:
http://social.msdn.microsoft.com/Forums/en-US/42d79a9c-43e0-4251-ae21-d4f32688eb43/how-to-use-callisto-numericupdowndelay-or-numericupdowninterval?forum=winappswithcsharp

from callisto.

timheuer avatar timheuer commented on August 26, 2024

Are you setting properties correctly for minimum and maximum as well? Please provide the specific repro as the test app shows the values working fine.

from callisto.

zipswich avatar zipswich commented on August 26, 2024

Thank you for your prompt response. I have to confess that I may not be using it correctly. I posted here per the encouragement of the moderator. Anyway, here is how to reproduce it.
I started a brand new WS project as simple as possible. The following code ( I do not know what is the proper way to paste code here):

<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
    <Controls:NumericUpDown Maximum="255" HorizontalAlignment="Center" VerticalAlignment="Center" Value="255" />
</Grid>

The following code generates an exception. The only difference from the above code is Interval="200". Is this a misuse of this property?

<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
    <Controls:NumericUpDown Maximum="255" HorizontalAlignment="Center" VerticalAlignment="Center" Value="255" Interval="200" />
</Grid>

from callisto.

zipswich avatar zipswich commented on August 26, 2024

It seems that the editor automatically remove the page tag of the code in my previous post.

from callisto.

timheuer avatar timheuer commented on August 26, 2024

Ok, I understand the bug now. Let me explain. The Interval property is used for the delay for the plus/minus buttons when you hold them down. This is default set to 100 milliseconds which should be enough. The bug is that when setting the value the buttons aren't available yet. If you wanted to set this value, use a Loaded event handler on the control and set the value in the sender property which will be the control.

If what you really wanted was the Increment value, you can set that accordingly and the plus/minus will increment/decrement by that amount.

from callisto.

zipswich avatar zipswich commented on August 26, 2024

Good. At least my understanding of Interval based on guessing is correct. I assume this applies to property Delay too.
I am fine now. I originally wanted to speed it up.

I found another weir behavior. Please let me know if I should open another thread.

Let's use the code in my previous post as an example. Everything looks great until the number is deleted by the backspace key when the input box shrinks to little space. Afterwards, entering numbers will take effect, but the numbers cannot be seen because the input box seems to be able only to shrink, not grow.

from callisto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.