Пример #1
0
        private static void OnExpandedItemChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            Accordian shelf = sender as Accordian;

            if (shelf != null)
            {
                shelf.OnExpandedItemChanged(e.OldValue, e.NewValue);
            }
        }
Пример #2
0
        protected virtual void OnExpanded()
        {
            Accordian parentAccordian = this.ParentAccordian;

            if (parentAccordian != null)
            {
                parentAccordian.ExpandedItem = this;
            }
            RaiseEvent(new RoutedEventArgs(ExpandedEvent, this));
        }