Innerborder after click on a RadButton

4 posts, 0 answers
  1. TLDesigner
    TLDesigner avatar
    10 posts
    Member since:
    Aug 2011

    Posted 29 Sep 2011 Link to this post

    Hello,

    We have a toolbar with a lot of buttons on it. The problem is number 4 (see image), after clicking the button, it gets a yellow innerborder.
    We want to omit this by styles in our app.xaml. Could you help me?

    http://imageshack.us/photo/my-images/35/statesb.jpg/

    Thanks you.

    Regards,
    TLDesigner.
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 04 Oct 2011 Link to this post

    Hi Tldesigner,

    Have you set the RadButton IsBackgroundVisible property to False? There is a known issue with this property, so it would be better to set the Background and BorderBrush properties to Transparent.

    If you don't use the IsBackgroundVisible property, can you please share with us the styles for the controls so that we can further investigate the case? Thank you in advance.

    Greetings,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. TLDesigner
    TLDesigner avatar
    10 posts
    Member since:
    Aug 2011

    Posted 05 Oct 2011 Link to this post

    Hi Tina,

    We are just using your own style (Office2007Blue).

    I think I need to do it with a trigger, because it gets this "innerBorder" after clicking the button.

    This code is an example, but it doesn't work.
    <ControlTemplate TargetType="{x:Type telerik:RadButton}">
                                                
                            <ControlTemplate.Triggers>
                                <Trigger Property="??????" Value="true">                               
                                    <Setter TargetName="InnerBorder" Property="??????" Value="??????"/>
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>

    Regards,
    Fran.
  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 07 Oct 2011 Link to this post

    Hi Tldesigner,

    Thank you for the clarification. This orange border is the focus border of the control. In its default ControlTemplate it is represented by the FocusVisual and FocusInnerVisual borders.

    In order to remove it you'll need to modify the default OfficeBlue style of the RadButton control and remove the IsFocused trigger. I attached a sample project to get you started. Please have a look at it and let me know if it helps or if we can further assist you.

    All the best,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top