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

Innerborder after click on a RadButton

3 Answers 169 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
TLDesigner
Top achievements
Rank 1
TLDesigner asked on 29 Sep 2011, 08:44 AM
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.

3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 04 Oct 2011, 08:23 AM
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 >>

0
TLDesigner
Top achievements
Rank 1
answered on 05 Oct 2011, 09:09 AM
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.
0
Tina Stancheva
Telerik team
answered on 07 Oct 2011, 03:37 PM
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 >>

Tags
Buttons
Asked by
TLDesigner
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
TLDesigner
Top achievements
Rank 1
Share this question
or