Exemple #1
0
        private static void OnLayoutPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            CropControl crop = d as CropControl;

            if (crop != null)
            {
                crop.DoFullLayout();
            }
        }
Exemple #2
0
        private static void OnDesiredAspectRatioChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            CropControl crop = d as CropControl;

            if (crop != null)
            {
                crop.SetCropForDesiredAspectRatio();
            }
        }