Esempio n. 1
0
        /// <summary>
        /// The constructor
        /// </summary>
        public ExtendedPanel()
        {
            InitializeComponent();


            //set handler for collapsing/expanding
            captionCtrl.SetStyleChangedHandler(new DirectionCtrlStyleChangedEvent(CollapsingHandler));

            //set the handler for the dragging event
            if (moveable == true)
            {
                captionCtrl.Dragging += new CaptionDraggingEvent(CaptionDraggingEvent);
            }

            //set the callback
            callbackNotifyAnimation         = new NotifyAnimationCallback(SetSizeCallback);
            callbackNotifyAnimationFinished = new NotifyAnimationFinishedCallback(AnimationFinished);
        }
        /// <summary>
        /// The constructor
        /// </summary>
        public ExtendedPanel()
        {
            InitializeComponent();


            captionCtrl.SetStyleChangedHandler(new DirectionCtrlStyleChangedEvent(CollapsingHandler));


            if (moveable == true)
            {
                captionCtrl.Dragging += new CaptionDraggingEvent(CaptionDraggingEvent);
            }

            this.captionCtrl.CheckedChanged += new EventCheckedChanged(captionCtrl_CheckedChanged);
            this.captionCtrl.RaiseClose     += new EventPanelClose(captionCtrl_RaiseClose);
            callbackNotifyAnimation          = new NotifyAnimationCallback(SetSizeCallback);
            callbackNotifyAnimationFinished  = new NotifyAnimationFinishedCallback(AnimationFinished);
        }
        /// <summary>
        ///   The constructor
        /// </summary>
        public ExtendedPanel()
        {
            InitializeComponent();

              //set handler for collapsing/expanding
              captionCtrl.SetStyleChangedHandler(CollapsingHandler);

              //set the handler for the dragging event
              if (moveable)
              {
            captionCtrl.Dragging += CaptionDraggingEvent;
              }

              //set the callback
              callbackNotifyAnimation = new NotifyAnimationCallback(SetSizeCallback);
              callbackNotifyAnimationFinished = new NotifyAnimationFinishedCallback(AnimationFinished);
        }