/// <summary> /// Called on application exit to clear all the references. /// </summary> public override void ClearData() { _ImageStyleResource = null; PclsImageControlViewModel.PropertyChanged -= PclsImageControlViewModel_PropertyChanged; PclsImageControlView.ClearData(); PclsImageControlViewModel.ClearData(); PclsImageControlModel.ClearData(); PclsImageControlView = null; base.ClearData(); }
/// <summary> /// Sends call to model to render the image selected in the mainWindow browse popup. /// </summary> /// <param name="imagePath"> Path of the image selected in the MainWindow browse popup.</param> public void RenderImage(string path) { PclsImageControlModel.RenderImage(path); PclsImageControlView.OnImageLoad(); }
public void UnRegisterImageControlEvents() { PclsImageControlView.UnRegisterEvents(); }
/// <summary> /// Save the Image to specific location on harddrive. /// </summary> /// <param name="fileName">The location where Image is to be stored.</param> public void SaveImage(string fileName) { PclsImageControlView.SaveImage(fileName); }
/// <summary> /// When CanvasSize of MainWindow is changed, the call will come here to controller to pass it to the view to reposition the imagecontrol. /// </summary> /// <param name="ImageCanvas"> the actual canvas in which image is contained. </param> public void CanvasSizeChanged(object ImageCanvas) { PclsImageControlView.CanvasSizeChanged(ImageCanvas); }