private static void OffsetZPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { TranslateTransform3D target = ((TranslateTransform3D)d); target._cachedOffsetZValue = (double)e.NewValue; target.PropertyChanged(OffsetZProperty); }