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

RadDocking RadSplitContainer Compass

2 Answers 86 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 12 Feb 2015, 12:50 PM
Dear Telerik Support,

How can I disable the compass which is appear in all RadSplitContainer when I drag a floatable item?

Thanks,
Rob


2 Answers, 1 is accepted

Sort by
0
Accepted
Nasko
Telerik team
answered on 13 Feb 2015, 08:15 AM
Hi Robert,

In order to hide the Compass of RadDocking you could apply a new CompassStyle that sets the visibility of all five indicators to False:

<Style x:Key="CompassStyle" TargetType="{x:Type telerik:Compass}">
    <Setter Property="IsLeftIndicatorVisible" Value="False" />
    <Setter Property="IsTopIndicatorVisible" Value="False" />
    <Setter Property="IsRightIndicatorVisible" Value="False" />
    <Setter Property="IsBottomIndicatorVisible" Value="False" />
    <Setter Property="IsCenterIndicatorVisible" Value="False"/>
</Style>
...
<telerik:RadDocking x:Name="radDocking" CompassStyle="{StaticResource CompassStyle}">
...
</telerik:radDocking>

However, please make a difference between the Compass and RootCompass - please, check this article from our help documentation. If you want to hide the indicators of the RootCompass too the same logic could be used - a new RootCompassStyle should be applied. 

As another approach we could suggest you to handle the PreviewShowCompass event. Inside it you could easily hide the indicators as shown below:

void radDocking_PreviewShowCompass(object sender, PreviewShowCompassEventArgs e)
{
    e.Compass.IsBottomIndicatorVisible = false;
    e.Compass.IsCenterIndicatorVisible = false;
    e.Compass.IsRightIndicatorVisible = false;
    e.Compass.IsLeftIndicatorVisible = false;
    e.Compass.IsTopIndicatorVisible = false;
}

We hope this will help you.

Regards,
Nasko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Robert
Top achievements
Rank 1
answered on 13 Feb 2015, 09:11 AM
Hello Nasko,

Thanks the answer, it helps me a lot.
I use both styles, and it works fine.

Regards,
Rob
Tags
Docking
Asked by
Robert
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Robert
Top achievements
Rank 1
Share this question
or