コード例 #1
0
ファイル: TagCloud.cs プロジェクト: mumianhua2008/PW
        //===================================================================================================================
        /// <summary>
        /// Rotate blocks
        /// </summary>
        private void RotateBlocks()
        {
            TagCloudItemSize size = GetElementsSize();

            foreach (TagCloudItem TagCloudItem in tagCollection)
            {
                Point3D point3D;
                if (rotateTransform.TryTransform(TagCloudItem.CenterPoint, out point3D))
                {
                    TagCloudItem.CenterPoint = point3D;
                    TagCloudItem.Redraw(size, scaleRatio, opacityRatio);
                }
            }
        }
コード例 #2
0
ファイル: TagCloudItem.cs プロジェクト: mumianhua2008/PW
        private static void OnCenterPointChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            TagCloudItem TagCloudItem = (TagCloudItem)sender;

            TagCloudItem.CenterPoint = (Point3D)e.NewValue;
        }