Beispiel #1
0
        internal protected virtual void OnItemCaptionClick(
            PushPanelItemCaptionClickEventArgs e)
        {
            if (e.Item.IsExpanded)
            {
                CollapseItem(e.Item);
            }
            else
            {
                ExpandItem(e.Item);
            }

            PushPanelItemCaptionClickEventHandler handler =
                base.Events[EventItemCaptionClick] as PushPanelItemCaptionClickEventHandler;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Beispiel #2
0
        internal protected virtual void OnItemCaptionClick(
            PushPanelItemCaptionClickEventArgs e)
        {
            if (e.Item.IsExpanded)
            {
                CollapseItem(e.Item);
            }
            else
            {
                ExpandItem(e.Item);
            }

            PushPanelItemCaptionClickEventHandler handler =
                base.Events[EventItemCaptionClick] as PushPanelItemCaptionClickEventHandler;
            if (handler != null)
            {
                handler(this, e);
            }
        }