TargetCapType points in the wrong direction

4 posts, 0 answers
  1. Kristoffer
    Kristoffer avatar
    158 posts
    Member since:
    Dec 2012

    Posted 28 Jan 2013 Link to this post

    I have a custom style for my connections. I set the target cap type as follows:
    <Setter Property="TargetCapType" Value="Arrow1Filled" />

    The result is an arrow pointing in the wrong direction, which is kind of ugly. See attached image!

    How can I fix this?
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 31 Jan 2013 Link to this post

    Hi Kristoffer,

    Can you send us a sample solution demonstrating the issue so that we can test it on our side? This way we will be able to further investigate its cause and advice you how to get over it.

    All the best,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Kristoffer
    Kristoffer avatar
    158 posts
    Member since:
    Dec 2012

    Posted 31 Jan 2013 Link to this post

    Hi,

    Thanks. I believe I found the issue. It seems my custom connection produced this weird artifact when I explicitly set the target cap in its constructor:

    public MyChartConnection(Link link)
    {
        SourceConnectorPosition = ConnectorPosition.Auto;
        TargetConnectorPosition = ConnectorPosition.Auto;

        SourceCapType = link.SourceCapType;
        TargetCapType = link.TargetCapType;
    }

    Could have had something to do with my connector names too. Not sure. I refactored large parts of the code since this issue!

  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 31 Jan 2013 Link to this post

    Hello Kristoffer,

    Thank you for getting back to us. I'm glad that you managed to fix the issue. However, if you encounter it again, please let us know so that we can take a closer look at it.

    Kind regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top