RadDocking RadSplitContainer Compass

3 posts, 1 answers
  1. Robert
    Robert avatar
    8 posts
    Member since:
    Oct 2012

    Posted 12 Feb 2015 Link to this post

    Dear Telerik Support,

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


  2. Answer
    Nasko avatar
    692 posts

    Posted 13 Feb 2015 Link to this post

    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"/>
    <telerik:RadDocking x:Name="radDocking" CompassStyle="{StaticResource CompassStyle}">

    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.


    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.

  3. Robert
    Robert avatar
    8 posts
    Member since:
    Oct 2012

    Posted 13 Feb 2015 in reply to Nasko Link to this post

    Hello Nasko,

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

Back to Top