WPF and Adorners

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

This is a migrated post! Originally posted on 17.10.2017 by user jensramlow. Please be aware that information can be outdated.

    Disclaimer

    This document governs the use of our Community Forum. By registering and using the platform, you accept these conditions.

    The COPA-DATA Community Forum serves to encourage the exchange of information and experience about the zenon software between forum users respectively zenon users.

    Please mind that any published information on the Community Forum is the subjective opinion and view based on the experience and the level of knowledge of the author. COPA-DATA does not overtake any responsibility for the content and the accuracy of the shared information.

    Users of the Community Forum are encouraged to share only well-founded experiences and to point out any risks associated with the implementation of proposed solutions to problems. COPA-DATA at its absolute discretion, reserves the right to moderate the forum. In this connection COPA-DATA may remove any information containing false facts, potentially dangerous solutions, bad language or content that may insult, degrade or discriminate others. COPA-DATA may block a non-complying user from forum access if the user violated this provision.

    COPA-DATA reserves the right to change this document from time to time at own discretion.


    Ing. Punzenberger COPA-DATA GmbH
    Karolingerstraße 7b · 5020 Salzburg · Austria
    www.copadata.com