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

How to make custom designed HorizontalStyle

1 Answer 90 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Johannes
Top achievements
Rank 1
Johannes asked on 12 May 2011, 10:02 PM
I just wanted to create completely custom styled <telerik:OrientedAppointmentItemStyleSelector.HorizontalStyle> items. I've created resources via Expression Blend and all that stuff.

Then I wanted to edit the template like follows - making it bigger and putting additional controls in it.
<Setter Property="Template">
    <Setter.Value>
        <ControlTemplate TargetType="{x:Type telerik:AppointmentItem}">
            <Grid x:Name="Root" Height="150">
                ...

I can put additional controls in the grid, but it is not getting bigger. The size remains small and the content is cut off. The Height="150" property seems to have no effect. What's going on here?

1 Answer, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 13 May 2011, 10:20 AM
Hi Johannes,

The height of the appointment item is not configurable from the HorizontalStyle. Due to the logic that the RadScheduleView uses to calculate sizes, you can change the size of appointments by setting the MinAppointmentHeight and MinAppointmentWidth properties of RadScheduleView.

Use MinAppointmentHeight for horizontally oriented appiontments. Anything that goes beyond the measure set in MinAppointmentHeight will be clipped.

I hope this helps.

Best wishes,
Dani
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ScheduleView
Asked by
Johannes
Top achievements
Rank 1
Answers by
Dani
Telerik team
Share this question
or