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

Special Slots Styles

3 Answers 91 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 01 Apr 2013, 07:51 PM
I'm working with the RadScheduleView and I have implemented styling my special slots per the Special and ReadOnly slots documentation. My issue is I would like to still have the lines for the times still visible. If you look at the attached image, I have my special slot in red, but I want the time lines in the yellow section to be visible in the red section. Any thoughts or suggestions?

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 02 Apr 2013, 07:33 AM
Hello Thomas,

You could try setting Opacity property in the Style of the Special Slots.

Regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Thomas
Top achievements
Rank 1
answered on 02 Apr 2013, 11:53 PM
I tried this, but it didn't work.
<UserControl.Resources>
    <local:SpecialSlotStyleSelector x:Key="SpecialSlotStyleSelector">
        <local:SpecialSlotStyleSelector.WorkingHoursStyle>
            <Style TargetType="telerik:HighlightItem">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate>
                            <Grid Background="#FE7276" Opacity="5" />
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
        </local:SpecialSlotStyleSelector.WorkingHoursStyle>
    </local:SpecialSlotStyleSelector>
</UserControl.Resources>


Any other thoughts?
0
Thomas
Top achievements
Rank 1
answered on 03 Apr 2013, 12:32 AM
I figured out what the issue was. I need to adjust the brush I was using. I found this post, opaque element in a transparent in WPF, which suggested adjusting the alpha for the color. I ended up doing this:
<UserControl.Resources>
    <local:SpecialSlotStyleSelector x:Key="SpecialSlotStyleSelector">
        <local:SpecialSlotStyleSelector.WorkingHoursStyle>
            <Style TargetType="telerik:HighlightItem">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate>
                            <Grid Background="#33FE7276" />
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
        </local:SpecialSlotStyleSelector.WorkingHoursStyle>
    </local:SpecialSlotStyleSelector>
</UserControl.Resources>
Tags
ScheduleView
Asked by
Thomas
Top achievements
Rank 1
Answers by
Yana
Telerik team
Thomas
Top achievements
Rank 1
Share this question
or