Hello,
I have a SfNavigationDrawer control with a secondary drawer, and I created a method for the Toggled event:
<navigationdrawer:SfNavigationDrawer x:Name="navigationDrawer" IsOpen="{Binding IsOpen, Mode=TwoWay}" Toggled="NavigationDrawer_Toggled">
...
<navigationdrawer:SfNavigationDrawer.SecondaryDrawerSettings>
<navigationdrawer:DrawerSettings x:Name="secondaryDrawer" IsOpen="{Binding IsOpenSecondary, Mode=TwoWay}">
...
</navigationdrawer:DrawerSettings>
</navigationdrawer:SfNavigationDrawer.SecondaryDrawerSettings>
</navigationdrawer:SfNavigationDrawer>
In this method I'd like to test if it is the secondary drawer which has been toggled, and if it is closing perform an action:
private async void NavigationDrawer_Toggled(object sender, Syncfusion.SfNavigationDrawer.XForms.ToggledEventArgs e)
{
if (e != null)
{
bool drawerState = e.isOpen;
if (e.IsSecondaryDrawer)
{
if (!drawerState)
await Modello.ReloadData();
}
}
}
What I want the method to do is the perform the action when the secondary drawer is closing. In Android the method acts as expected, while in iOS it doesn't.
Is there a way to achieve my goal? Am I doing something wrong?