/// <summary>
        /// Attaches manipulators to the TimelineControl to provide additional capabilities.
        /// Order of adding manipulators matters.</summary>
        protected virtual void AttachManipulators()
        {
            // The order here determines the order of receiving Paint events and is the reverse
            //  order of receiving picking events. For example, a custom Control that is drawn
            //  on top of everything else and that can be clicked on should come last in this
            //  list so that it is drawn last and is picked first.
            new D2dSelectionManipulator(m_timelineControl);
            new D2dMoveManipulator(m_timelineControl);
            new D2dScaleManipulator(m_timelineControl);
            m_splitManipulator = new D2dSplitManipulator(m_timelineControl);
            D2dSnapManipulator     snapManipulator     = new D2dSnapManipulator(m_timelineControl);
            D2dScrubberManipulator scrubberManipulator = new ScrubberManipulator(m_timelineControl);

            //// Allow the snap manipulator to snap objects to the scrubber.
            snapManipulator.Scrubber = scrubberManipulator;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Attaches manipulators to the TimelineControl to provide additional capabilities.
        /// Order of adding manipulators matters.</summary>
        protected virtual void AttachManipulators()
        {
            // The order here determines the order of receiving Paint events and is the reverse
            //  order of receiving picking events. For example, a custom Control that is drawn
            //  on top of everything else and that can be clicked on should come last in this
            //  list so that it is drawn last and is picked first.
            D2dSelectionManipulator selectionManipulator = new D2dSelectionManipulator(m_timelineControl);
            D2dMoveManipulator moveManipulator = new D2dMoveManipulator(m_timelineControl);
            D2dScaleManipulator scaleManipulator = new D2dScaleManipulator(m_timelineControl);
            m_splitManipulator = new D2dSplitManipulator(m_timelineControl);
            D2dSnapManipulator snapManipulator = new D2dSnapManipulator(m_timelineControl);
            D2dScrubberManipulator scrubberManipulator = new ScrubberManipulator(m_timelineControl);

            //// Allow the snap manipulator to snap objects to the scrubber.
            snapManipulator.Scrubber = scrubberManipulator;
        }