Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
579
NumericUpAndDown
posted

Hi,

I use your controls for WinForms and recently I'm starting to explore the WPF.

I'm very new to WPF.

What I'm trying to do:

I try to let the user input a time (9:30, 12:15...). Windows is lacking a lot of controls I was used to (eg DateTimePicker) in WinForms but luckely I can rely on Infragistic for those. Using the DateTimeEditor you can only pick a date and I want only picking a Time. So with two numeric up and down I thought I could solve the problem.. But Microsoft didn't supply a NumericUpAndDown neither (kind of wondering what they are thinking at Microsoft..The lack of controls is very frustrating, we have to rely on 3rd party controls like yours, using WPF is like eating at a very fancy restaurant but you don't get a plate and a fork is also missing, if you wanted a plate and a fork you should have brought your own, they only give knifes and glasses at the restaurant :) )

Now, I use the NumericEditor but I still have 2 questions:

1. how can I set the maximum? (23 for hours, 59 for minutes)

2. how can I set the format? (hours and minutes aren't decimals or doubles and will never be, I hope :) i need Integers)

 

Parents
No Data
Reply
  • 54937
    Offline posted

    You may not want to use a xamNumericEditor but use a xamDateTimeEditor or xamMaskedEditor. You can specify a mask that has time sections (e.g. hh:mm:ss). There is a page in the help which covers all the possible mask characters.

Children
No Data