private void DateTimeEdit_Loaded(object sender, RoutedEventArgs e)
{
Button button = dateTimeEdit.Template.FindName("todayButton", dateTimeEdit) as Button;
if (button != null)
{
button.Visibility = Visibility.Collapsed;
}
} |
I can't believe there isn't a property to just hide the Today button...
I have plenty of DateTimeEdit components in my form. Do I have to hide their Today button programatically on each one?
Please, implement a property "ShowTodayButton" on the component. Not all dates are near the "today" range.
It's also absurd to have all that blank space on the bottom of the calendar if the "Today" and "Clear" buttons are hidden.
Hi Vicent Ortega,
We are currently validating your reported query and will provide an update on or before May 6th, 2025. We appreciate your patience until then.
Regards,
Bhaskar Suresh
Hi Vicent Ortega,
We have prepared a workaround to override the style of the DateTimeEdit control to remove the footer of the control. Please refer to the attached sample and let us know if you have any concerns.
We have also analyzed your requirement for “Need to provide support to customize the TodayButton visibility in DateTimeEdit”. We will share the feature request details to you regarding this on or before May 8th, 2025.
Regards,
Bhaskar Suresh
Hi Vicent Ortega,
We have analyzed your requirement for “Support to show/hide the Today Button in WPF DateTimeEdit control”. We have logged a feature request for the same. We will implement this feature in any of our upcoming releases.
At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know when this feature is implemented. We appreciate your patience until then.
Thank you for requesting this feature and helping us define it. We are always trying to make our products better and feature requests like yours are a key part of our product growth efforts.
Feedback link: Support to show/hide the Today Button in WPF DateTimeEdit control in WPF | Feedback Portal
If you have any more specifications/suggestions for the feature request, you can add them as a comment in the portal and cast your vote to make it count.
Regards,
Bhaskar Suresh
Having trouble customizing the sfDateTimeEdit control? I understand the desire to streamline the interface and remove that "today" button. It's like wanting to draft the perfect player in Retro Bowl – you need precise control! I'm not familiar with that specific control, but often these things have a property setting or style that controls the display of such elements.