Is there any way to open drawer by code ?
I saw manual , but no description...
I want to open like this , like dialog..
but No open function.
var drawerView = new DeviceSettingDrawerView
{
DataContext = new DeviceSettingDrawerViewModel()
};
var result = await DrawerHost.open( drawerView... )
Tried to use the RoutedCommand?
DrawerHost.OpenDrawerCommand.Execute(NamedDrawerHost, Dock.Left);
In addition to the above solution there is also Is*DrawerOpen boolean properties on the DrawerHost that you can simply toggle to open and close the drawers.
Most helpful comment
Tried to use the RoutedCommand?
DrawerHost.OpenDrawerCommand.Execute(NamedDrawerHost, Dock.Left);