public ScrollWithSelectionFocus()
 {
     Guid manipulationEventsId = new Guid(IIDGuid.IManipulationEvents);
     _iprocessor = new InertiaProcessor();
     _iprocessor.FindConnectionPoint(ref manipulationEventsId, out _conpt);
     _conpt.Advise(this, out _cookie);
 }
        public Manipulable()
        {
            _iprocessor = new InertiaProcessor();
            _mprocessor = new ManipulationProcessor();
            _pts        = new Dictionary <int, Point>();

            Guid manipulationEventsId = new Guid(IIDGuid.IManipulationEvents);

            _mprocessor.FindConnectionPoint(ref manipulationEventsId, out _meventsconnectionpoint);
            _meventsconnectionpoint.Advise(this, out _cookie);
            _iprocessor.FindConnectionPoint(ref manipulationEventsId, out _ieventsconnectionpoint);
            _ieventsconnectionpoint.Advise(this, out _cookie);

            OnPivotPointChanged(this, new DependencyPropertyChangedEventArgs());
            OnPivotRadiusChanged(this, new DependencyPropertyChangedEventArgs());
            OnSupportedManipulationsChanged(this, new DependencyPropertyChangedEventArgs());
            OnMinimumScaleRotateRadiusChanged(this, new DependencyPropertyChangedEventArgs());

            _matrotate    = new RotateTransform();
            _matscale     = new ScaleTransform();
            _mattranslate = new TranslateTransform();
            _mattransform = new TransformGroup();

            _mattransform.Children.Add(_matrotate);
            _mattransform.Children.Add(_matscale);
            _mattransform.Children.Add(_mattranslate);
        }
        public ScrollWithSelectionFocus()
        {
            Guid manipulationEventsId = new Guid(IIDGuid.IManipulationEvents);

            _iprocessor = new InertiaProcessor();
            _iprocessor.FindConnectionPoint(ref manipulationEventsId, out _conpt);
            _conpt.Advise(this, out _cookie);
        }
 internal InertiaProcessor(ManipulationInertiaProcessor processor)
 {
     _comInertiaProcessor = new ManipulationInterop.InertiaProcessor();
     _manipulationProcessor = processor;
     _comManipulationEvents = new ManipulationEvents(_comInertiaProcessor, processor as IManipulationEvents);
     MaxInertiaSteps = 200;
     InertiaTimerInterval = 15;
 }
 internal InertiaProcessor(ManipulationInertiaProcessor processor)
 {
     _comInertiaProcessor   = new ManipulationInterop.InertiaProcessor();
     _manipulationProcessor = processor;
     _comManipulationEvents = new ManipulationEvents(_comInertiaProcessor, processor as IManipulationEvents);
     MaxInertiaSteps        = 200;
     InertiaTimerInterval   = 15;
 }