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

how to remove white background and border from style

1 Answer 231 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Ravi
Top achievements
Rank 1
Ravi asked on 11 Mar 2013, 04:24 AM
Hi There,

for more information please see the attachment.
I am creating a style for Dockpanel, for some part of control i want to remove the border and background, but i am unable to find the control part in the expression blend. 
can you please guide me that how i can remove unwanted properties from the style.

Regards,
Srinivas.

1 Answer, 1 is accepted

Sort by
0
Masha
Telerik team
answered on 12 Mar 2013, 02:47 PM
Hi Srinvias,

You could easily remove the desired background, setting Background property to the RadPaneGroup element of RadDocking control. To remove the border, you should modify inside the control template of RadPaneGroup style. Inside Expression Blend right-click of the RadPaneGroup in Objects and Timeline, select Edit Template -> Edit a Copy and it will generate the style of RadPaneGroup.
Look for
<Border x:Name="BorderLayer3" BorderBrush="White" BorderThickness="2" CornerRadius="0,1,1,1">
    <Border x:Name="BorderLayer2" BorderBrush="#FFF0F0F0" BorderThickness="2" CornerRadius="0">
        <Border x:Name="BorderLayer1" BorderBrush="#FF848484" BorderThickness="1" CornerRadius="0">
            <ContentPresenter ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}"/>
        </Border>
    </Border>
</Border>

inside DocumentHostTemplate setter and modify the borders of your choice. Please note you man need to apply the same changes to the BottomTemplate and to the TopTemplate, if you wish to have the same look of all RadDocking positions.

The attached project demonstrates the described scenario. I hope this will be helpful.

Kind regards,
Maria
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Docking
Asked by
Ravi
Top achievements
Rank 1
Answers by
Masha
Telerik team
Share this question
or