Prism cannot be displayed correctly in SfNavigationDrawer ContentView

hi

  <sync:SfNavigationDrawer.ContentView>

                <StackPanel>

                    <ContentControl

                        Name="MainContentRegion"

                        HorizontalAlignment="Left"

                        VerticalAlignment="Top"

                        prism:RegionManager.RegionName="ContentRegion" />

                </StackPanel>

            </sync:SfNavigationDrawer.ContentView>

I have correctly configured Prism model, Can display correctly outside the SfNavigationDrawer tag。


 Prism8.1.97  Syncfusion 25.2.6


Best regards,

Kevin


3 Replies

PI Prithis Iyyappan Syncfusion Team May 31, 2024 04:03 PM UTC

Hi Kevin,

 

We have investigated your query based on your update. However, we are unsure of the issue you are facing due to insufficient details. Could you please provide more information regarding this issue? If possible, please share the complete sample, as it will help us to resolve your issue.

 

Regards,

Prithis I.



KE kevin replied to Prithis Iyyappan June 4, 2024 12:51 PM UTC

Hi  Prithis,

  my share the complete sample.I don't know if I made a mistake in that step,

Looking forward to your reply.

Best regards,

Kevin


Attachment: demo_39e1f816.zip


PI Prithis Iyyappan Syncfusion Team June 5, 2024 11:20 AM UTC

Hi Kevin,


We have investigated the reported issue with the provided sample. While analyzing the sample, we found that the region registration/Installation might be improper on the SfNavigationDrawer. To resolve this issue, we have registered the RegionManager in the MainWindow and we suggest you to follow the same. Please refer to the attached sample for more details.


 public partial class MainWindow : ChromelessWindow

 {

     private readonly IRegionManager _regionManager;

     public MainWindow(IRegionManager regionManager)

     {

         SfSkinManager.SetTheme(this, new Theme("Windows11Light"));

         InitializeComponent();

 

         _regionManager = regionManager;

         RegionManager.SetRegionManager(MainContentRegion, _regionManager);

     }

 }


Please let us know whether the above suggestion meets your requirements. Please do not hesitate to contact us if you have any concerns or queries.


Regards,

Prithis I.


Attachment: demo_e31d5db0.zip

Loader.
Up arrow icon