protected UpdateViewFromPoint ( Control control, Point pt ) : void | ||
control | Control | Source control. |
pt | Point | Point within the source control. |
return | void |
protected override void UpdateViewFromPoint(Control control, Point pt)
{
// If our application is inactive
if (!_active)
{
// 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);
}