C# Class csAppraisalPlugin.Controls.ImageViewControl

Simple border to hold an image (using the ImagePath property), which can be manipulated by using the mouse (pan, zoom) and touch. In addition, the image is not locked by the Image control, so it can be safely deleted from disk. MouseLeftButtonDown: Pan MouseWheel: Zoom Mouse double click: Reset pan/zoom Touch drag: Pan Touch pinch: Zoom
Inheritance: System.Windows.Controls.Border
Mostrar archivo Open project: TNOCS/csTouch

Public Properties

Property Type Description
ImagePathProperty System.Windows.DependencyProperty

Public Methods

Method Description
ImageViewControl ( ) : System

Protected Methods

Method Description
OnImagePathChanged ( string oldImagePath, string newImagePath ) : void

Provides derived classes an opportunity to handle changes to the ImagePath property.

Private Methods

Method Description
Initialize ( ) : void
OnImagePathChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Handles changes to the ImagePath property.

ReloadImage ( string path ) : void

Load the image (and do not keep a hold on it, so we can delete the image without problems)

ResetPanZoom ( ) : void

Method Details

ImageViewControl() public method

public ImageViewControl ( ) : System
return System

OnImagePathChanged() protected method

Provides derived classes an opportunity to handle changes to the ImagePath property.
protected OnImagePathChanged ( string oldImagePath, string newImagePath ) : void
oldImagePath string
newImagePath string
return void

Property Details

ImagePathProperty public_oe static_oe property

ImagePath Dependency Property
public static DependencyProperty,System.Windows ImagePathProperty
return System.Windows.DependencyProperty