Toolkit.TabRibbon.LayoutRoot_MouseLeave C# (CSharp) Method

LayoutRoot_MouseLeave() private method

private LayoutRoot_MouseLeave ( object sender, System.Windows.Input.MouseEventArgs e ) : void
sender object
e System.Windows.Input.MouseEventArgs
return void
        private void LayoutRoot_MouseLeave(object sender, MouseEventArgs e)
        {
            if (!isPinned)
            {
                PushPin.Visibility = Visibility.Collapsed;
                if (RibbonExpand == null)
                {
                    RibbonCollapse = root.Resources["RibbonCollapse"] as Storyboard;
                    RibbonExpand.Completed += RibbonExpand_Completed;
                }
                RibbonCollapse.Begin();
            }
        }