Style for selected Disabled Item

4 posts, 0 answers
  1. Manish Agarwal
    Manish Agarwal avatar
    44 posts
    Member since:
    Sep 2009

    Posted 21 Dec 2009 Link to this post

    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

     

  2. Dimitrina
    Admin
    Dimitrina avatar
    442 posts

    Posted 23 Dec 2009 Link to this post

    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.
  3. DevCraft banner
  4. Manish Agarwal
    Manish Agarwal avatar
    44 posts
    Member since:
    Sep 2009

    Posted 28 Dec 2009 Link to this post

    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
  5. Dimitrina
    Admin
    Dimitrina avatar
    442 posts

    Posted 04 Jan 2010 Link to this post

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