How to hide up and down button in TimeSpanEdit
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:
