protected override void UpdateViewFromPoint(Control control, Point pt)
{
// If our application is inactive
if (!_active && (CommonHelper.ActiveFloatingWindow == null))
{
// And the mouse is not captured
if (!MouseCaptured)
{
// Then get the view under the mouse
ViewBase mouseView = Root.ViewFromPoint(pt);
// We only allow application button views to be interacted with
if (mouseView is ViewDrawRibbonAppButton)
ActiveView = mouseView;
else
ActiveView = null;
}
}
else
base.UpdateViewFromPoint(control, pt);
}