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

Commented Unassigned: DateTimeUpDown control not working with unknown time format [22355]

$
0
0
I am using DateTimeUpDown control from assembly "Xceed.Wpf.Toolkit". When I change my date time setting

Change date and time settings ---> Change date and time ----> Change Calendar settings ---> Select time tab ----> In long time combo box, type h m t s, even my time in DateTimeUpDown changes.

When i run the application, the control giving 19 10 45 as output, but required output is 19:10:45 because i have specified FormatString for the control. The control is not giving expected output. How could be done this?


<Window x:Class="DefaultTimeFormat.DateTimeUpDown"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Ext="clr-namespace:Xceed.Wpf.Toolkit;assembly=Xceed.Wpf.Toolkit"
xmlns:local="clr-namespace:DefaultTimeFormat"
Title="DateTimeUpDown" Height="300" Width="300">
<Grid>
<Ext:DateTimeUpDown Height="30" Format="Custom" FormatString="HH:mm:ss" x:Name="T1" />
</Grid>
</Window>
Comments: ** Comment from web user: BoucherS **

Hi,

Can you be more explicit ? What does this means :
"Change date and time settings ---> Change date and time ----> Change Calendar settings ---> Select time tab ----> In long time combo box, type h m t s, even my time in DateTimeUpDown changes."

By the way, a DateTimeUpDown doesn't include a Calendar. It's just a box with up/down buttons, displaying HH:mm:ss in your case.


Viewing all articles
Browse latest Browse all 4964

Trending Articles



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