private static void CenterPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e) { Artboard artboard = (Artboard)dependencyObject; artboard.UpdateChildren(); if (artboard.CenterChanged == null) { return; } artboard.CenterChanged((object)artboard, EventArgs.Empty); }
private static void ZoomPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e) { PerformanceUtility.MeasurePerformanceUntilRender(PerformanceEvent.AdjustZoom); Artboard artboard = (Artboard)dependencyObject; artboard.UpdateChildren(); if (artboard.ZoomChanged == null) { return; } artboard.ZoomChanged((object)artboard, EventArgs.Empty); }