Page 1 of 1

Set ShapeCanvas.SetAnchor to bottom

Posted: Thu Jun 22, 2017 6:46 am
by Karol.Korol
Hi,
I have a question: is there any way to set FrameworkElement anchor to CenterBottom?
In LocationAnchor we have only 5 options:

Code: Select all

public enum LocationAnchor
    {
        Center = 0,
        LeftTop = 1,
        RightTop = 2,
        RightBottom = 3,
        LeftBottom = 4
    }
But in my case none of above is suitable. I have marker similiart to google.

Re: Set ShapeCanvas.SetAnchor to bottom

Posted: Thu Jun 22, 2017 6:52 am
by Oliver Heilig
Hello Karol,

sorry there is no such option built-in. But you can set the Box of your icon accoringly. See http://devblog.ptvgroup.com/2013/08/08/ ... p-markers/

Re: Set ShapeCanvas.SetAnchor to bottom

Posted: Thu Jun 22, 2017 6:55 am
by Oliver Heilig
You can the the sources also here (ToursAndStopsMultiCanvas):

https://github.com/ptv-logistics/xservernet-bin