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

How to reduce width of TimeRulerMonthViewItemStyle in RadScheduleView

1 Answer 99 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Purushothaman
Top achievements
Rank 2
Purushothaman asked on 30 Apr 2012, 12:56 PM
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>

1 Answer, 1 is accepted

Sort by
0
Purushothaman
Top achievements
Rank 2
answered on 02 May 2012, 07:28 AM
Tags
ScheduleView
Asked by
Purushothaman
Top achievements
Rank 2
Answers by
Purushothaman
Top achievements
Rank 2
Share this question
or