Microsoft.Phone.Controls.ContextMenu.OnRootVisualManipulationCompleted C# (CSharp) Method

OnRootVisualManipulationCompleted() private method

Handles the ManipulationCompleted event for the RootVisual.
private OnRootVisualManipulationCompleted ( object sender, System.Windows.Input.ManipulationCompletedEventArgs e ) : void
sender object Source of the event.
e System.Windows.Input.ManipulationCompletedEventArgs Event arguments.
return void
        private void OnRootVisualManipulationCompleted(object sender, ManipulationCompletedEventArgs e)
        {
            // Breaking contact during the ContextMenu show animation should cancel the ContextMenu
            if (_openingStoryboardPlaying && (DateTime.UtcNow <= _openingStoryboardReleaseThreshold))
            {
                IsOpen = false;
            }
        }