private void LayoutRoot_MouseEnter(object sender, MouseEventArgs e) { if (!isPinned) { if (RibbonExpand == null) RibbonExpand = root.Resources["RibbonExpand"] as Storyboard; RibbonExpand.Begin(); } }