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

Add DateTimePicker #4439

Closed
Torchok19081986 opened this issue Nov 20, 2023 · 1 comment
Closed

Add DateTimePicker #4439

Torchok19081986 opened this issue Nov 20, 2023 · 1 comment

Comments

@Torchok19081986
Copy link

Hallo, How do i add DateTimepicker that only shows Time like in example. In Xaml are no Properties for change Behaviour of DateTimePicker. I use project for Target .NET Framework 4.8.

@punker76
Copy link
Member

Just use the TimePicker for that

<mah:TimePicker mah:TextBoxHelper.ClearTextButton="True" />

<mah:TimePicker Margin="{StaticResource ControlMargin}"
mah:TextBoxHelper.ClearTextButton="{Binding Path=IsChecked, ElementName=DateTimePickerClearTextButton, Mode=TwoWay}"
Culture="{Binding CurrentCulture, Mode=OneWay}"
HandVisibility="{Binding Path=SelectedItem, ElementName=DateTimePickerHandVisibility, Mode=TwoWay}"
IsEnabled="{Binding Path=IsChecked, ElementName=DateTimePickerIsEnabled, Mode=TwoWay}"
IsReadOnly="{Binding Path=IsChecked, ElementName=DateTimePickerIsReadOnly, Mode=TwoWay}"
PickerVisibility="{Binding Path=SelectedItem, ElementName=DateTimePickerPickerVisibility, Mode=TwoWay}"
SelectedDateTime="{Binding Path=SelectedDateTime, ElementName=DateTimePicker}"
SelectedTimeFormat="{Binding Path=SelectedItem, ElementName=DateTimePickerTimeFormat}" />

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

No branches or pull requests

2 participants