private void OnCropAreaChanged(object sender, CropAreaChangedEventArgs e)
 {
     filterManager.CropFilter.UpdateCropRect(e.X, e.Y, e.Width, e.Height);
 }
        private void BroadcastCropAreaChangeEvent()
        {
            double viewfinderLeft = (double)HighlightBox.GetValue(Canvas.LeftProperty);
            double viewfinderTop = (double)HighlightBox.GetValue(Canvas.TopProperty);

            if (CropAreaChanged != null)
            {
                var evt = new CropAreaChangedEventArgs();
                evt.X = viewfinderLeft;
                evt.Y = viewfinderTop;
                evt.Width = HighlightBox.Width;
                evt.Height = HighlightBox.Height;

                CropAreaChanged(this, evt);
            }
        }