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>
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>