예제 #1
0
        //===================================================================================================================
        /// <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
        private static void OnCenterPointChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            TagCloudItem TagCloudItem = (TagCloudItem)sender;

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