예제 #1
0
        protected virtual void OnIsActiveChanged(object sender, RoutedEventArgs e)
        {
            FrameworkElement Element = sender as FrameworkElement;

            while (Element != null)
            {
                ToolBarTray AsToolBarTray;
                if ((AsToolBarTray = Element as ToolBarTray) != null)
                {
                    PrettyItemsControl.MakeToolBarTrayPretty(AsToolBarTray);
                    break;
                }

                Element = Element.Parent as FrameworkElement;
            }
        }
예제 #2
0
 private void OnMainToolBarLoaded(object sender, RoutedEventArgs e)
 {
     NotifyMainToolBarLoaded(e);
     PrettyItemsControl.MakeToolBarTrayPretty((ToolBarTray)sender);
 }