You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to hide the Clock-Button of the TimePicker control whenever I want to. For example I would like to hide the button, when the TimePicker is disabled. I could define a binding for that or just hide the button indefinitely.
Maybe with a dependency Property "bool HidePopupButton" or "Visibility HidePopupButton". So that I could use it like this:
We have similar controls in our project, where the button is hidden, when the control is disabled. With the TimePicker we want to have the same behaviour.
@SiggiSch Assuming you don't have any other Buttons added to the content of the TimePicker (where this behavior is not desirable), you should be able to add the resource below which simply amends the button style with a trigger that hides a button when TimePicker.IsEnabled=False.
Activity
nicolaihenriksen commentedon Sep 4, 2024
@SiggiSch Assuming you don't have any other
Buttonsadded to the content of theTimePicker(where this behavior is not desirable), you should be able to add the resource below which simply amends the button style with a trigger that hides a button whenTimePicker.IsEnabled=False.SiggiSch commentedon Sep 6, 2024
Thanks @nicolaihenriksen and @Keboo !