Can I put a sfDiagram into a ContentControl of a SfDockingManager

Can I put a sfDiagram into a ContentControl of a SfDockingManager?
My simple test project is at https://drive.google.com/file/d/13O6k-3atZZOTHhgyPKZqoHTCTHk7Wtkw/view?usp=sharing
I am using VS 2019 community in windows 10 1903(18362.356).
 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:stDesigner"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:layout="using:Syncfusion.UI.Xaml.Controls.Layout"
    xmlns:syncDiagram="using:Syncfusion.UI.Xaml.Diagram"
    x:Class="stDesigner.MainPage"
    mc:Ignorable="d">
    
       

       
           
       

       
    

                                   

The problem I got is a exception when I start the app:
> stDesigner.exe!stDesigner.App.InitializeComponent.AnonymousMethod__5_0(object sender, Windows.UI.Xaml.UnhandledExceptionEventArgs e) Line 53 C#
The exception is:
Message = "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at Syncfusion.UI.Xaml.Diagram.SfDiagram.DiagramUnloadedEvent(Object sender, RoutedEventArgs e)"


Thanks!

12 Replies

AL Alex April 19, 2020 01:04 PM UTC

<layout:SfDockingManager>

        <ContentControl x:Name="StartPage" layout:SfDockingManager.Header="View" layout:SfDockingManager.DockState="Document">
            <syncDiagram:SfDiagram x:Name="stCanvas"/>
        </ContentControl>

  </layout:SfDockingManager>


AL Alex April 19, 2020 01:05 PM UTC

Attached the prj.

Attachment: stDesigner_c5b9a9b1.zip


RA Ranjitha Amirthalingam Syncfusion Team April 20, 2020 01:08 PM UTC

Hi Alex, 
 
Thanks for contacting Syncfusion Support. 
 
Requirement: Need to add SfDiagram to the content control of SfDockingManager. 
 
We have support to achieve your requirement. But, currently we are facing an issue to achieve the requirement. We will fix the issue and include the fix in our weekly nuget package which is scheduled on April 28, 2020. 
 
If you need patch in any of our main or sp release versions please revert us with the version details. 
 
Also, you can track the status of the issue from the following link. 
 
Note : We didn’t provide patch for any weekly nuget versions. 
 
 
Regards, 
Ranjitha A. 



AL Alex April 20, 2020 05:59 PM UTC

Thanks!

It will be nice if I can have the patch for 18.1.0.42.


RA Ranjitha Amirthalingam Syncfusion Team April 21, 2020 10:00 AM UTC

Hi Alex, 
 
Reported issue : Null reference exception occurs while set Sfdiagram into the content control of SfDockingmanager. 
 
The reported issue has been fixed and the patch for this fix can be downloaded from the following location.

Recommended approach - exe will perform automatic configuration 

Please find the patch setup from below location:
 

Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment
Please find the patch assemblies alone from below location:
  
 
 
Assembly Version: 18.1.0.42
Installation Directions :
This patch should replace the files “Syncfusion.SfDiagram.WPF” under the following folder.
$system drive:\Program Files\Syncfusion\Essential Studio\18.1.0.42\precompiledassemblies\18.1.0.42\4.0 
 
$system drive:\Program Files\Syncfusion\Essential Studio\18.1.0.42\precompiledassemblies\18.1.0.42\4.5  
$system drive:\Program Files\Syncfusion\Essential Studio\18.1.0.42\precompiledassemblies\18.1.0.42\4.6

To automatically run the Assembly Manager, please check the Run assembly manager checkbox option while installing the patch. If this option is unchecked, the patch will replace the assemblies in precompiled assemblies’ folder only. Then, you will have to manually copy and paste them to the preferred location or you will have to run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies.

Note :
To change how you receive bug fixes, ask your license management portal admin to change your project’s patch delivery mode.
https://www.syncfusion.com/account/license
 

Disclaimer :
Please note that we have created this patch for version 18.1.0.42 specifically to resolve the issue reported in this forum. 
 

If you have received other patches for the same version for other products, please apply all patches in the order received.
This fix will be included in our next weekly nuget package which will be available on April 28, 2020.
 
 
Regards, 
Ranjitha A. 



AL Alex April 27, 2020 08:20 PM UTC

I got the following exception when I resize the diagram only when I have contents in the diagram.

System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'


Attachment: stDesigner_f90657f3.zip


RA Ranjitha Amirthalingam Syncfusion Team April 28, 2020 11:33 AM UTC

Hi Alex, 
 
Thanks for sharing the sample. 
 
Reported scenario: Access violation exception occurs while resize the diagram. 
 
We have tried to replicate the issue as per the reported scenario in the provided sample(shared by you). But , we could not able to reproduce the issue. We have provided video to represent this. 
 
 
If the scenario replicated in the video is different from the reported scenario, please provide video or replication steps or stack trace to look into the issue. This helps us to serve you better. 
 
Regards, 
Ranjitha A. 
 



AL Alex April 28, 2020 03:25 PM UTC

I am sorry I mean to resize the whole diagram control. Please see the attached video.

Attachment: ScreenCapture_4282020_9.21.56_AM_c0dcf965.zip


RA Ranjitha Amirthalingam Syncfusion Team April 29, 2020 05:49 AM UTC

Hi Alex, 
 
Thanks for sharing video to replicate the issue. 
 
Reported Issue: Access Violation Exception occurs while resizing the slider towards Diagram. 
 
We were able to reproduce the issue.Currently, we are validating the root cause of the issue. We will update the details about this issue on May 1, 2020. 
 
 
Regards, 
Ranjitha A. 



KR Karkuvel Rajan Shanmugavel Syncfusion Team May 1, 2020 05:42 PM UTC

Hi Alex, 
 
Reported issue: Access Violation Exception occurs while resizing the slider towards Diagram. 
 
Sorry for the inconvenience caused. We are still facing some difficulties in finding the root cause for the reported issue as this issue only occurs when we use diagram as content control in  docking manager. We will update you with more details on 4th May, 2020. 
 
Regards, 
Karkuvel Rajan S 



RA Ranjitha Amirthalingam Syncfusion Team May 4, 2020 03:07 PM UTC

Hi Alex, 
 
Sorry for the delay. 
 
Reported Issue: Access violation exception occurs while resizing the slider towards diagram. 
 
We have confirmed that the reported issue is a bug and have logged defect report regarding this. We will fix the issue and provide the patch for the fix on May 18 , 2020. 
   
Also, you can track the status of the issue from the following link.  
 
 
Regards, 
Ranjitha A. 
 



RA Ranjitha Amirthalingam Syncfusion Team May 18, 2020 10:05 AM UTC

Hi Alex, 
 
Reported Issue: Access violation exception occurs while resizing the slider towards diagram.  
 
 
We have included the fix in our nuget release and it is rolled out successfully. Please upgrade to our latest version(18.1.0.52).      
      
  
Regards, 
Ranjitha A. 


Loader.
Up arrow icon