Customize Compass style

3 posts, 0 answers
  1. Sébastien
    Sébastien avatar
    3 posts
    Member since:
    Mar 2017

    Posted 28 Mar 2017 Link to this post

    Hi,

    I m looking for compass customization, I mean except the background and different parts (top, center etc..) I can modify.

    I would like to replace standards arrows by custom images. I tried to edit a template on Blend and I could not edit it (I created a telerik:Compass but "element already has a logical parent, must be detached....)

    Thanks for you help

  2. Polya
    Admin
    Polya avatar
    267 posts

    Posted 31 Mar 2017 Link to this post

    Hi Sébastien,

    In order to change the compass indicators style we should change the control template in each of the TopIndicatorStyle, LeftIndicatorStyle, RightIndicatorStyle, BottomIndicatorStyle and CenterIndicatorStyle.
    Then we should change the ButtonChromes that represent the indicators in the RootCompassStyle and CompassStyle to use the new styles from above.
    Last, we should change the style for the RadDocking and set its RootCompassStyle and CompassStyle to use the modified styles from above.

    I've created a sample project demonstrating how to change the left indicator for both the root compass and the regular compass. You can find it attached. Please, note that the project uses implicit styles.

    Regards,
    Polya
    Telerik by Progress
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
  3. Sébastien
    Sébastien avatar
    3 posts
    Member since:
    Mar 2017

    Posted 31 Mar 2017 in reply to Polya Link to this post

    It works.

    Thx a lot

    Sebastien

Back to Top