Change Outer Appointment margin

5 posts, 1 answers
  1. Philippe
    Philippe avatar
    8 posts
    Member since:
    Oct 2012

    Posted 28 Nov 2012 Link to this post

    Hi,

    I'd like to change the outer appointment margin (suppress those few pixels around each appointment)

    I looked into PART_ItemsHost for any margin to modify with no success..

    What should I do?

    Thanks for your answer

    Regards

  2. Masha
    Admin
    Masha avatar
    355 posts

    Posted 03 Dec 2012 Link to this post

    Hello Philippe,

    In order to change the appointment margin you need to modify the margin of the horizontal appointment item. This can be done with a simple style. For example:

    <telerik:OrientedAppointmentItemStyleSelectorx:Key="MyAppointmentStyle">
                <telerik:OrientedAppointmentItemStyleSelector.HorizontalStyle>
                    <StyleTargetType="telerik:AppointmentItem">
                        <SetterProperty="Margin"Value="3 0 3 0"/>
                    </Style>
                </telerik:OrientedAppointmentItemStyleSelector.HorizontalStyle>
            </telerik:OrientedAppointmentItemStyleSelector>

    I hope this helps

    Greetings,
    Maria
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Philippe
    Philippe avatar
    8 posts
    Member since:
    Oct 2012

    Posted 04 Dec 2012 Link to this post

    Hi,

    The sample you gave me doesn't fit my needs...
    I use a day definition, and if I specify a margin in telerik:OrientedAppointmentItemStyleSelector.VerticalStyle, I can reduce the apointment width but I can't increase it to suppress the outer margin.

    You can see this margin on the attached file.

    Do you see my problem?
  5. Answer
    Masha
    Admin
    Masha avatar
    355 posts

    Posted 07 Dec 2012 Link to this post

    Hi Philippe,

    To remove the white space from the picture, you should set GroupHeaderStyleSelector to your RadScheduleView, and particular you need to modify the padding from HorizontalTodayGroupHeaderStyle.  You can check here for more information about this.

    If you still experience difficulties, isolate the issue in a runnable sample and I will help you with customization.

    Regards,
    Maria
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Philippe
    Philippe avatar
    8 posts
    Member since:
    Oct 2012

    Posted 10 Dec 2012 Link to this post

    I was using a Blend generated template, and updating the HorizontalTodayGroupHeaderStyle was inoperant.
    With the original template (in the 'Themes.implicit' directory), it's all right. 

    Thanks
Back to Top
UI for WPF is Visual Studio 2017 Ready