Example #1
0
 /// <summary>
 /// Occurs when the value of the <see cref="LayoutTransform"/> dependency property changes.
 /// </summary>
 private static void HandleLayoutTransformChanged(DependencyObject dobj, Transform oldValue, Transform newValue)
 {
     var element = (FrameworkElement)dobj;
     element.OnTransformChanged();
 }
Example #2
0
 /// <summary>
 /// Gets a value indicating whether the specified transformation is an identity transformation.
 /// </summary>
 /// <param name="transform">The transform to evaluate.</param>
 /// <returns><see langword="true"/> if the specified transform is an identity transform; otherwise, <see langword="false"/>.</returns>
 public static Boolean IsIdentityTransform(Transform transform)
 {
     return (transform == null || transform.IsIdentity);
 }