Articles in this section
Category / Section

How to set the height for the DropDown Popup height in SfTimePicker?

1 min read

To set the height for the DropDown popup of SfTimePicker, DropDownHeight property of SfTimePicker can be used. The same has been explained in the following code example:

XAML:

<Window x:Class="WpfApplication6.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 x:Name="Grid1">
<syncfusion:SfTimePicker x:Name="TimePicker" Width="200"  DropDownHeight="200" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Grid>
</Window>

 

C#:

using Syncfusion.Windows.Tools.Controls;
namespace WpfApplication6
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
SfTimePicker Picker = new SfTimePicker();
Picker.HorizontalAlignment = HorizontalAlignment.Center;
Picker.VerticalAlignment = VerticalAlignment.Center;
Picker.DropDownHeight = 200;
Picker.Width = 200;
Grid1.Children.Add(Picker);}
}
}

 

Output:

 

                

        

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