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

Style for selected Disabled Item

3 Answers 56 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Manish Agarwal
Top achievements
Rank 1
Manish Agarwal asked on 21 Dec 2009, 07:51 AM
Hi

I have used SolidColorBrushes for Mouse Over and Selected Items in RADPanelBar.
But when i open a Child Window Colors gets very Light for selection.

I am attaching some snapshot to show this  also attaching my styles.

 

 

 

<!-- RadPanelBarItem Second Level Control Template -->

 

 

 

<ControlTemplate TargetType="telerikNavigation:RadPanelBarItem" x:Key="PanelBarItemSecondLevelTemplate">

 

...................

 

..........
<!-- Disabled -->

 

 

 

<Rectangle x:Name="DisabledVisual" Fill="{StaticResource DisabledBrush}"

 

 

IsHitTestVisible="true" Visibility="Collapsed" />  // When i use here my mouseovercolorBrush Whole RadPanel bAr color get Green on Opening Child Window.

So what should i use to remain the color same.

Regards
Charu Pahuja

 

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 23 Dec 2009, 02:06 PM
Hi Manish Agarwal,

There is a property  OverlayBrush="#90163EA5" in the ChildWindow control which sets the background of control. You can simply edit its value to fix the problem. Following is the cod:.

<basics:ChildWindow
    xmlns:basics="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" x:Name="chwPopUp"
    x:Class="ChildWindow.TestChildWindow"
    Title="TestChildWindow"
    Width="400" Height="300" OverlayBrush="#90163EA5" VerticalAlignment="Top" Margin="0,20,0,0">
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
    </Grid>
</basics:ChildWindow>


All the best,
Dimitrina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Manish Agarwal
Top achievements
Rank 1
answered on 29 Dec 2009, 05:17 AM
Hi

But it will fill the complete background color with the Color of OverLay Brush
I just want my selected items color as in RADPanelBar ,which i shown previosly , should not get changed.

It color becomes dull when i open any child window , and remains dull even on closing the window.


Please Reply ASAP

Regards
Charu Pahuja
0
Dimitrina
Telerik team
answered on 04 Jan 2010, 01:13 PM
Hi Manish,

Please excuse me for the delayed response. I was able to reproduce the problem you reported and it turned out to be a bug.

At the moment there is a clumsy "workaround", which is editing the default style of the control to remove the "disabled" state. Of course this is not a real workaround, but it could be used for the time being if you don't need the disabled state of the control. I am attaching a sample project that demonstrates the approach I suggest.

Your feedback is greatly appreciated and your Telerik points are updated.


Best wishes,
Dimitrina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
PanelBar
Asked by
Manish Agarwal
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Manish Agarwal
Top achievements
Rank 1
Share this question
or