How to reduce width of TimeRulerMonthViewItemStyle in RadScheduleView

2 posts, 0 answers
  1. Purushothaman
    Purushothaman avatar
    23 posts
    Member since:
    Jul 2011

    Posted 30 Apr 2012 Link to this post

    Hi,

    I am tring to change the width of TimeRulerMonthViewItemStyle.Because i want to fit Rad Schedule view with in grid.But i cant.so i am tried to reduce the width using TimeRulerMonthViewItemStyle.But Only GoToDayButtonStyle width only changed.

    Here i attach my code and output screen of my code.please can able to tell me how to handle this situation.


    <Style
    x:Key="TimeRulerMonthViewItemStyle"
    TargetType="tkScheduleView:TimeRulerMonthViewItem">
    <Setter
    Property="Foreground"
    Value="{StaticResource MonthViewTimeRulerItemForeground_Normal}" />
    <Setter
    Property="Margin"
    Value="0 -1 -1 0" />
    <Setter
    Property="Width"
    Value="85" />

    <Setter
    Property="Template">
    <Setter.Value>
    <ControlTemplate
    TargetType="tkScheduleView:TimeRulerMonthViewItem">
    <Grid>
    <telerik:RadButton
    Padding="0"
    VerticalAlignment="Top"
    Height="22"
    Style="{StaticResource GoToDayButtonStyle}"
    Command="tkScheduleView:RadScheduleViewCommands.SetDayViewMode"
    CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date}">
    <ContentPresenter
    Margin="{TemplateBinding Padding}" />
    </telerik:RadButton>
    <telerik:RadToggleButton
    Visibility="{Binding ExpandButtonVisibility}"
    IsChecked="{Binding IsExpanded, Mode=TwoWay}"
    Style="{StaticResource ExpandMonthViewButtonStyle}"
    HorizontalAlignment="Right"
    VerticalAlignment="Bottom" />
    </Grid>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    </Style>
  2. DevCraft banner
Back to Top