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

Customize Compass style

2 Answers 83 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Sébastien
Top achievements
Rank 1
Sébastien asked on 28 Mar 2017, 10:14 PM

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 Answers, 1 is accepted

Sort by
0
Polya
Telerik team
answered on 31 Mar 2017, 01:18 PM
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.
0
Sébastien
Top achievements
Rank 1
answered on 31 Mar 2017, 01:24 PM

It works.

Thx a lot

Sebastien

Tags
Docking
Asked by
Sébastien
Top achievements
Rank 1
Answers by
Polya
Telerik team
Sébastien
Top achievements
Rank 1
Share this question
or