Special Slots Styles

4 posts, 0 answers
  1. Thomas
    Thomas avatar
    9 posts
    Member since:
    Aug 2010

    Posted 01 Apr 2013 Link to this post

    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?
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 02 Apr 2013 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Thomas
    Thomas avatar
    9 posts
    Member since:
    Aug 2010

    Posted 02 Apr 2013 Link to this post

    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?
  5. Thomas
    Thomas avatar
    9 posts
    Member since:
    Aug 2010

    Posted 02 Apr 2013 Link to this post

    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>
Back to Top