Possible to style anchors?

Docking/MDI for WPF Forum

Posted 3 years ago by Magnus Larsson - Attentec AB
Version: 15.1.0624
Avatar

It is possible to customize the appearance of the drag-target anchors?

I haven't been able to find anything about it in the documentation. If there is, I would appreciate a pointer.

Thanks, Magnus

Comments (1)

Posted 3 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

Those are called dock guides and they are templated elements so you can create new implicit Styles and templates for them.  If you put new implicit Styles for them in your Application.Resources, you can make them look however you need.  Be sure you clone our default templates though to ensure all "parts" are accounted for.

In the 2015.1 version, the elements are DockGuideCross, DockGuidesLeft, DockGuideTop, DockGuideRight, and DockGuideBottom classes.

In the upcoming 2016.1 version (vNext), these are split into DockGuideCross, DockGuideOuterLeft, DockGuideOuterTop, DockGuideOuterRight, DockGuideOuterBottom, DockGuideInnerLeft, DockGuideInnerTop, DockGuideInnerRight, DockGuideInnerBottom, and DockGuideCenter elements.  All of those can have implicit Styles and templates applied to them too.


Actipro Software Support

The latest build of this product (v2018.1 build 0675) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.