Turn Off Mouse Over Effect In Item Panel

2 posts, 0 answers
  1. heavywoody
    heavywoody avatar
    79 posts
    Member since:
    Oct 2009

    Posted 19 Mar 2010 Link to this post

    I have been fighting with this for the last two hours, reading other posts on it, editing a copy of the itemtemplate.  Basically, I like the RadPanelBar, but I really don't like the mouseover effect on the background.  I don't know if this is the Panel its self or the Item.  But I have to get rid of this.  I have a hard blue background with a listbox.  When I hover over to select a listbox item, the background turns yellowish which looks terrible.  Again, I read the other post about specifically taking over the triggers for the RadPanelBarItem, but it has no effect.

    Here is my code.  Try it yourself and you will see the very bad yellow trigger effect.  I don't want it to change. I want it to stay the dark blue the entire time.

     

     

     

    <Grid>

     

     

     

     

    <Grid.Background>

     

     

     

     

    <RadialGradientBrush>

     

     

     

     

    <GradientStop Color="#FF3A7198" Offset="0.982"/>

     

     

     

     

    <GradientStop Color="#FF365D7A" Offset="0.029"/>

     

     

     

     

    </RadialGradientBrush>

     

     

     

     

    </Grid.Background>

     

     

     

     

    <telerikNavigation:RadPanelBar VerticalAlignment="Stretch" x:Name="radPanelBar" Background="Transparent">

     

     

     

     

    <telerikNavigation:RadPanelBarItem>

     

     

     

     

    <telerikNavigation:RadPanelBarItem.Header>

     

     

     

     

    <TextBlock Text="Workflow Templates" Margin="5 4 5 5" />

     

     

     

     

    </telerikNavigation:RadPanelBarItem.Header>

     

     

     

     

    <ListBox x:Name="lstWorkFlowTemplates"

     

     

     

    SelectionChanged="lstTemplates_SelectionChanged"

     

     

     

    Background="Transparent"

     

     

     

    BorderThickness="0"

     

     

     

    IsSynchronizedWithCurrentItem="True"/>

     

     

     

     

    </telerikNavigation:RadPanelBarItem>

     

     

     

     

    <telerikNavigation:RadPanelBarItem>

     

     

     

     

    <telerikNavigation:RadPanelBarItem.Header>

     

     

     

     

    <TextBlock Text="Column Templates" Margin="5 4 5 5" />

     

     

     

     

    </telerikNavigation:RadPanelBarItem.Header>

     

     

     

     

    <ListBox x:Name="lstTemplates"

     

     

     

    SelectionChanged="lstTemplates_SelectionChanged"

     

     

     

    Background="Transparent"

     

     

     

    BorderThickness="0"

     

     

     

    IsSynchronizedWithCurrentItem="True"/>

     

     

     

     

    </telerikNavigation:RadPanelBarItem>

     

     

     

     

    </telerikNavigation:RadPanelBar>

     

     

     

     

    </Grid>

     

  2. Dimitrina
    Admin
    Dimitrina avatar
    442 posts

    Posted 24 Mar 2010 Link to this post

    Hi Christian Loepp,

    Please find attached an example with a custom style of RadPanelBar control. If you have further questions please do not hesitate to ask us.
    I hope this will help you.


    Greetings,
    Dimitrina
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top