private static void OnLayoutPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { CropControl crop = d as CropControl; if (crop != null) { crop.DoFullLayout(); } }
private static void OnDesiredAspectRatioChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { CropControl crop = d as CropControl; if (crop != null) { crop.SetCropForDesiredAspectRatio(); } }