public static ScaleTransform SetScale(this ScaleTransform transform, double scale) //can use this in both WPF and Silverlight (the last one misses a parametric constructor) to initialize on the same statement on which we construct the ScaleTransform { return(transform.SetScale(scale, scale)); }