New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TimePicker 24hour format selection #2985

Closed
honzasram opened this Issue Jun 9, 2017 · 4 comments

Comments

Projects
None yet
2 participants
@honzasram

honzasram commented Jun 9, 2017

Hi. I'd like to set 24 hour format selection in TimePicker. So far I have to set if this is AM or PM, which is not pretty common in Czech format.

Environment

MahApps.Metro v1.5.0.23
Windows OS 10/7
Visual Studio 2015
.NET Framework 4.5.2

@punker76

This comment has been minimized.

Member

punker76 commented Jun 13, 2017

@honzasram The AM/PM comes from the Culture properties DateTimeFormat.AMDesignator and DateTimeFormat.PMDesignator

@honzasram

This comment has been minimized.

honzasram commented Jun 14, 2017

@punker76 Thank you for reply. However, I'm not pretty sure if I understand. What exactly should i add to code?

Even if I set up Culture to "cs-CZ" which uses 24 hour format by default, I Get this
bez nazvu

I want to get rid of AM/PM selector (in this case dop./odp.) and get all 24 hour to hour combobox.

Code:
<controls:TimePicker Margin="2" IsClockVisible="False" Culture="cs-CZ" PickerVisibility="HourMinute" SelectedTime="{Binding ActionSelectedTime, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}"/>

@punker76

This comment has been minimized.

Member

punker76 commented Jun 14, 2017

@honzasram Ok, you're right. I found the problem and will fix it in 1.6.0 (and alpha).

@punker76 punker76 added the Bug label Jun 14, 2017

@punker76 punker76 added this to the 1.6.0 milestone Jun 14, 2017

@punker76 punker76 self-assigned this Jun 14, 2017

@punker76 punker76 closed this in 66aadb0 Jun 14, 2017

punker76 added a commit that referenced this issue Jun 14, 2017

@punker76

This comment has been minimized.

Member

punker76 commented Jun 14, 2017

@honzasram You can test the latest alpha version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment