ScheduleView row height

1 posts, 0 answers
  1. Sergey
    Sergey avatar
    26 posts
    Member since:
    Jun 2012

    Posted 03 May 2013 Link to this post

    I want to reduce the height of the ScheduleView row. I tried to set the height of the VerticalBottomLevelStyle and AppointmentItemStyle to fixed value (10) and while the appointment height did become 10 the row height doesn't shrink below 23:

    <UserControl.Resources>
            <tvSchedule:ViewModel x:Key="ViewModel" />
     
            <common:ResourceAppointmentItemStyleSelector x:Key="AppointmentItemStyleSelector">
                <common:ResourceAppointmentItemStyleSelector.NewsHorizontalStyle>
                    <Style TargetType="scheduleView:AppointmentItem" BasedOn="{StaticResource AppointmentItemBaseStyle}"/>
                </common:ResourceAppointmentItemStyleSelector.NewsHorizontalStyle>
            </common:ResourceAppointmentItemStyleSelector>
     
            <Style x:Key="AppointmentItemBaseStyle" TargetType="scheduleView:AppointmentItem">
                <Setter Property="Height" Value="10" />
            </Style>
     
            <Style x:Key="VerticalBottomLevelGroupHeaderStyle" TargetType="telerik:GroupHeader">
                <Setter Property="Height" Value="10" />
            </Style>
        </UserControl.Resources>
     
        <Grid DataContext="{StaticResource ViewModel}">
            <telerik:RadScheduleView AppointmentStyleSelector="{StaticResource AppointmentItemStyleSelector}">
                <telerik:RadScheduleView.GroupHeaderStyleSelector>
                    <telerik:OrientedGroupHeaderStyleSelector
         VerticalBottomLevelStyle="{StaticResource VerticalBottomLevelGroupHeaderStyle}" />  
                </telerik:RadScheduleView.GroupHeaderStyleSelector>
     
                <telerik:RadScheduleView.GroupDescriptionsSource>
                    <scheduleView:GroupDescriptionCollection>
                        <scheduleView:DateGroupDescription />
                    </scheduleView:GroupDescriptionCollection>
                </telerik:RadScheduleView.GroupDescriptionsSource>
     
                <telerik:RadScheduleView.AppointmentsSource>
                    <telerik:ObservableAppointmentCollection>
                        <telerik:Appointment Subject="WORLD NEWS" Start="04/28/2013 6:00" End="04/28/2013 10:00">
                            <telerik:Appointment.Resources>
                                <scheduleView:Resource ResourceName="News" ResourceType="Programme" />
                            </telerik:Appointment.Resources>
                        </telerik:Appointment>
                    </telerik:ObservableAppointmentCollection>
                </telerik:RadScheduleView.AppointmentsSource>
     
                <telerik:RadScheduleView.ViewDefinitions>
                    <telerik:WeekViewDefinition Orientation="Horizontal"/>
                </telerik:RadScheduleView.ViewDefinitions>
     
            </telerik:RadScheduleView>
        </Grid>

    How can I reduce the row height to 10?
Back to Top