Articles in this section
Category / Section

How to enable or disable the repeat button in the DateTimeEdit control?

1 min read

Up and Down buttons for Increment or Decrement date in the DateTimeEdit control can be enabled or disabled by using the IsVisibleRepeatButton property, according to its value.

The same is explained in the following code example.

XAML

<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:syncfusion="http:schemas.syncfusion.com/wpf"
xmlns:syncfusion1="http://schemas.syncfusion.com/wpf" x:Class="DateTimeEdit.MainWindow"
Title="MainWindow" Height="350" Width="525">
<Grid>
<syncfusion1:DateTimeEdit Name="DateTimeEdit" Width="150" HorizontalAlignment="Center" Text="DateTimeEdit" IsVisibleRepeatButton="True" VerticalAlignment="Top" UpRepeatButtonMargin="1" DownRepeatButtonMargin="1"/>
  </Grid>
</Window>

                          

C#

namespace DateTimeEdit
{
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
DateTimeEdit.IsVisibleRepeatButton = true;
}
}
}

 

The following screenshots show the enable and disable repeat buttons in the DateTimeEditControl.

 

Figure 1: Enable repeat buttons

Figure 2: Disable repeat buttons

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied