ManipulationPivot.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / ManipulationPivot.cs / 1305600 / ManipulationPivot.cs

                            //---------------------------------------------------------------------------- 
//
// Copyright (C) Microsoft Corporation.  All rights reserved.
//
//--------------------------------------------------------------------------- 

using System; 
using System.Windows; 

namespace System.Windows.Input 
{
    /// 
    ///     Data regarding a pivot associated with a manipulation.
    ///  
    public class ManipulationPivot
    { 
        ///  
        ///     Initializes a new instance of this object.
        ///  
        public ManipulationPivot()
        {
        }
 
        /// 
        ///     Initializes a new instance of this object. 
        ///  
        public ManipulationPivot(Point center, double radius)
        { 
            Center = center;
            Radius = radius;
        }
 
        /// 
        ///     Location of a pivot. 
        ///  
        public Point Center
        { 
            get;
            set;
        }
 
        /// 
        ///     The area that is considered "close" to the pivot. 
        ///     Movement within this area will dampen the effect of rotation. 
        /// 
        public double Radius 
        {
            get;
            set;
        } 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------- 
//
// Copyright (C) Microsoft Corporation.  All rights reserved.
//
//--------------------------------------------------------------------------- 

using System; 
using System.Windows; 

namespace System.Windows.Input 
{
    /// 
    ///     Data regarding a pivot associated with a manipulation.
    ///  
    public class ManipulationPivot
    { 
        ///  
        ///     Initializes a new instance of this object.
        ///  
        public ManipulationPivot()
        {
        }
 
        /// 
        ///     Initializes a new instance of this object. 
        ///  
        public ManipulationPivot(Point center, double radius)
        { 
            Center = center;
            Radius = radius;
        }
 
        /// 
        ///     Location of a pivot. 
        ///  
        public Point Center
        { 
            get;
            set;
        }
 
        /// 
        ///     The area that is considered "close" to the pivot. 
        ///     Movement within this area will dampen the effect of rotation. 
        /// 
        public double Radius 
        {
            get;
            set;
        } 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK