Ejemplo n.º 1
0
        public ManipulableContentControl(CompositeTransform initialTransform)
        {
            this.InitializeComponent();

            // Create the ManipulationManager and set MatrixTransform from it
            manipulationManager = new ManipulationManager(initialTransform);
            matrixXform.Matrix  = manipulationManager.Matrix;

            this.ManipulationMode = ManipulationModes.All &
                                    ~ManipulationModes.TranslateRailsX &
                                    ~ManipulationModes.TranslateRailsY;
        }