DockingManager with Caliburn.Micro

Hello,
I was started work with Syncfusion controls in wpf and have problem with Docking Manager and Caliburn.Micro. UserControl doesn't display on tabs. I was try resolve my problem - Link . Could you give me a sample with new Caliburn.Micro?

3 Replies

DR Durga Rajan Syncfusion Team May 15, 2018 07:34 AM UTC

Hi Pawel Szulik, 

Thanks for contacting Syncfusion support. 

We have checked your query and screenshot about “UserControl is not displayed as content of the Document tab in DockingManager” and we suspect that you have missed to add the user control to the DataTemplate with respect to ViewModel. Please refer the below code example, 

          <DataTemplate DataType="{x:Type local:MainWindowCSViewModel}"> 
                <Grid> 
                    <local:MainWindowCSView/> 
                </Grid> 
           </DataTemplate> 

We have attached our Visual Studio Demo which is followed Caliburn Micro pattern. Please get the sample from below location, 


If we have misunderstood your query please get back to us with more details. This would help us to provide solution at earliest. 

Regards, 
Durga S. 



PA Pawel May 15, 2018 08:03 PM UTC

Hello!
Thanks for help! You're right, I forgot to add a few lines to App.xaml.

I updated your sample with old Caliburn.Micro to latest stably version (3.2.0.0) is easy.


Add Initialize(); to ctor  And
protected override void OnStartup(object sender, System.Windows.StartupEventArgs e)
{
     DisplayRootViewFor<ShellViewModel>();
}



DR Durga Rajan Syncfusion Team May 16, 2018 06:58 AM UTC

Hi Pawel Szulik, 

Thanks for the update. Please let us know if you need any further assistance.  

Regards, 
Durga S. 


Loader.
Up arrow icon