Showing results 1 to 1 of 1

Thread: WPF and Adorners

  1. #1
    Join Date
    21.12.2016
    Posts
    16

    Frage WPF and Adorners

    Hello,

    My task is to implement a .NET based WPF control including a more or less complex chart.
    The chart contains a zoom and pan functionality for zooming in, zoom out, scoll and pan within the chart area by using the left/right mouse buttons.

    In the zenon-integrated "Extended trend" you can make use of a zoom function by click-and-hold the left mouse botton and creating a zoom rectangle. - Which works fine.
    The same functionality in the WPF control is functional working without problems but there is no visible rectangle when invoking with click-and-hold the left mouse botton.
    This problem resides regardless what style settings for the zoom-area rectangle are choosen. Even with whatever opacity setting is is still not visible.

    The zoom-area rectangle is made by an Adorner (https://docs.microsoft.com/en-us/dotnet/framework/wpf/controls/adorners-overview) and seems not be drawn.
    When implementing the same WPF outside of zenon runtime it is working as expected and the zoom-area rectangle is visible.
    See screenshot for an exmple.

    Environment is zenon 7.60 on Windows 10 and WPF for .NET 4.5.
    Do you know any limitations for using Adorners within WPF controls for zenon?

    Thank you for any idea on this.
    Regards, Jens
    Attached Thumbnails Attached Thumbnails Unbenannt.PNG  

Similar Threads

  1. Wpf
    By parisamoosavi in forum VSTA
    Replies: 1
    Last Post: 13th January 2015, 07:42
  2. wpf in zenon
    By paulvs in forum VSTA
    Replies: 3
    Last Post: 26th February 2014, 11:48
  3. Replies: 5
    Last Post: 18th September 2013, 13:26
  4. WPF with .Net
    By dlamarche in forum VSTA
    Replies: 1
    Last Post: 4th July 2013, 02:55
  5. WPF questions
    By zenmyway in forum VSTA
    Replies: 1
    Last Post: 28th November 2010, 23:57

Tags for this Thread

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •