We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Node adorner doesn't rerender after zooming

Hello,
I need to create a node with the adorner decorator, which will redraw after zooming in. I have successfully assigned the Adorner to the Node, but zooming (Ctrl + MouseScroll) occurs only on the Node. Please advise me how to implement adorner to zoom together with the Node.
I attach a simple demonstration project in VS2013.

Thank you,
Petr

Attachment: CircleAdornerTest_39636a62.zip

5 Replies

RA Ranjitha Amirthalingam Syncfusion Team April 14, 2016 12:28 PM UTC

Hi Petr,

Thanks for contacting Syncfusion Support.


We are able to reproduce the reported scenario “Framework CircleAdorner is not Zoomed together with Node” while using Node (Diagram Element). So, we have tested the reported scenario with Framework Element(Button), which behaves the same. We have provided the video and modified sample (with framework elements) to represent this. Please refer to the sample and video as below.


Video Link:
Framework_video


Sample Link:
Framework_video





Regards,
Ranjitha A.


PC Petr Cesak April 14, 2016 02:02 PM UTC

Hi Ranjitha,
thank you for response.

Your video link and sample link contain the same video file. I can't find sample project.
After watching the video I agree. Any adorner assigned to FrameworkElement in Diagram control behaves the same. Probably won't be a problem in the Node element, but in Diagram control and its zoom function. I need a Diagram to call InvalidateVisual after zooming, but I couldn't find any relevant event. Your answer don't give me any satisfactory solution.
I tried to create the same example with the SfDiagram control and it works correctly. Unfortunately my project profusely uses Diagram control and it would be so difficult to rewrite it.

Regards,
Petr


RA Ranjitha Amirthalingam Syncfusion Team April 19, 2016 12:53 PM UTC

Hi Petr,

Sorry for the inconvenience caused.

Reported scenario:  CircleAdorner is not Zoomed together with Node.
We have provided animation support for ZoomIn/ZoomOut functions in DiagramControl which causes the reported scenario. The animation of the DiagramView can disabled by AnimationEnabled property of the DiagramView. Please refer the following code example to disable the animation.

Code Example:

diagramView.AnimationEnabled = false;

//here diagramView is an instance of the DiagramView



Regards,
Ranjitha A.


PC Petr Cesak April 19, 2016 03:10 PM UTC

Hi Ranjitha,
I certainly appreciate your help.

Unfortunately your advise does not work for my diagram. Everything behaves the same as before, only animation has been removed.

My
modified file MainWindow.xaml from sample CircleAdornerTest:
        <syncfusion:DiagramControl>
            <syncfusion:DiagramControl.Model>
                <syncfusion:DiagramModel x:Name="diagram" />
            </syncfusion:DiagramControl.Model>
            <syncfusion:DiagramControl.View>
                <syncfusion:DiagramView AnimationEnabled="False" />
            </syncfusion:DiagramControl.View>
        </syncfusion:DiagramControl>

I use Syncfusion version 13.4.0.63 (Syncfusion.Diagram.Wpf.dll, 13.4400.0.63).
Could you send me a fixed VS project or video for inspiration, please.

Regards,
Petr


RA Ranjitha Amirthalingam Syncfusion Team April 20, 2016 12:51 PM UTC

Hi Petr,
 

We have confirmed that the reported issue “CircleAdorner is not Zoomed together with Nodeas an issue and a support incident has been created under your account to track the status of this issue. Please log on to our support website to check for further updates.


https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents


                                      

Regards,
Ranjitha A.


Loader.
Live Chat Icon For mobile
Up arrow icon