void IFlyoutBehavior.OnPaneActivated(IFlyoutHost host, RadPane targetPane) { host.SetSelectedPane(targetPane); if (host.CurrentState == FlyoutState.Closed) { host.StartOpenAnimation(); } }
void IFlyoutBehavior.OnPaneMouseLeftButtonDown(IFlyoutHost host, RadPane targetPane) { if (host.CurrentState != FlyoutState.Opened) { host.StartOpenAnimation(); } else { host.StartCloseAnimation(); } }