public CroppingWindow(BitmapImage bitmapImage) { InitializeComponent(); // pass data to custom user control CropTool.SetImage(bitmapImage); }