This is a migrated thread and some comments may be shown as answers.

ScheduleView row height

0 Answers 122 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Sergey
Top achievements
Rank 1
Sergey asked on 03 May 2013, 08:49 AM
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?

No answers yet. Maybe you can help?

Tags
ScheduleView
Asked by
Sergey
Top achievements
Rank 1
Share this question
or