//=================================================================================================================== /// <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); } } }
private static void OnCenterPointChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { TagCloudItem TagCloudItem = (TagCloudItem)sender; TagCloudItem.CenterPoint = (Point3D)e.NewValue; }