Hi Andreas Schramm,
Thank you for
reaching out to Syncfusion support!
To address the issue
you're encountering, where the CommunityToolkit.MVVM properties and commands
aren’t updating as expected within the SfNavigationDrawer ContentView, it’s
essential to assign the BindingContext of the ContentPage to the
NavigationDrawer ContentView as well. This ensures that the bindings from the
CommunityToolkit.MVVM library work correctly within the navigation drawer.
Code Snippet
|
public partial
class MainPage : ContentPage
{
private Inbox inbox;
…
public MainPage()
{
InitializeComponent();
inbox = new Inbox();
…
Initialize();
}
private void Initialize()
{
navigationDrawer.ContentView
= inbox.Content;
navigationDrawer.ContentView.BindingContext = inbox.BindingContext;
…
}
}
|
We've also attached
a sample project implementing this approach for your reference. Please take a
look, and let us know if you have further questions or need additional
assistance.
Regards,
Brundha V
Attachment:
SfNavigationDrawerSample_eb0f1d58.zip