Articles in this section
Category / Section

How to hide up and down button in TimeSpanEdit

1 min read

Up and Down Button to increment or decrement the time in TimeSpanEdit can be hide by set ShowArrowButtons as False.

XAML:

//Code Explains how to hide Up and Down Button for TimeSpanEdit
<Window x:Class="DocumentContainerSample.MainWindow"
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"
Title="MainWindow" Height="350" Width="525">
<Grid>
<syncfusion:TimeSpanEdit Name="timespan" Width="100" Height="50" ShowArrowButtons="False">
</syncfusion:TimeSpanEdit>
</Grid>
</Window>

  C#:

//Code Explains how to hide Up and Down Button for TimeSpanEdit
namespace DocumentContainerSample
{
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
timespan.ShowArrowButtons = false;
}
}
}

Output:

C:\Users\Ashok.Murugesan\Desktop\Navigation\showarrowsbutton.png

 

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