Skip to content
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
Closed

TimePicker 24hour format selection #2985

honzasram opened this issue Jun 9, 2017 · 4 comments
Assignees
Labels
Milestone

Comments

@honzasram
Copy link

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
Copy link
Member

punker76 commented Jun 13, 2017

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

@honzasram
Copy link
Author

@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
Copy link
Member

@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 added a commit that referenced this issue Jun 14, 2017
@punker76
Copy link
Member

@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
Labels
Development

No branches or pull requests

2 participants