New to Telerik UI for WPF? Start a free 30-day trial
Stretching Content Size to Maximum Width in RadScheduleView DayViewDefinition
Updated on Sep 15, 2025
Environment
| Product | RadScheduleView for WPF |
| Version | 2024.4.1111 |
Description
How to stretch the view definition to fill the available space of the RadScheduleView control.
Solution
To extend the content size of the RadScheduleView's active view definition, you can set its MinTimeRulerExtent property. This property allows you to set the minimum width of the TimeRuler in pixels when the active view definition's Orientation property is set to Horizontal. This ensures that the view utilizes the entire width.
Here is an example code snippet to achieve the desired behavior:
XAML
<telerik:RadScheduleView x:Name="scheduleView" DataContext="{StaticResource MyViewModel}" AppointmentsSource="{Binding MyAppointments}">
<telerik:RadScheduleView.ViewDefinitions>
<telerik:DayViewDefinition MinTimeRulerExtent="{Binding ElementName=scheduleView, Path=ActualWidth}"/>
</telerik:RadScheduleView.ViewDefinitions>
</telerik:RadScheduleView>
For more details on configuring the TimeRuler, refer to the WPF ScheduleView - TimeRuler Configuration documentation.