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
Afficher le fichier Open project: TNOCS/csTouch

Méthodes publiques

Свойство Type Description
ImagePathProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode Description
ImageViewControl ( ) : System

Méthodes protégées

Méthode Description
OnImagePathChanged ( string oldImagePath, string newImagePath ) : void

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

Private Methods

Méthode 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 méthode

public ImageViewControl ( ) : System
Résultat System

OnImagePathChanged() protected méthode

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

Property Details

ImagePathProperty public_oe static_oe property

ImagePath Dependency Property
public static DependencyProperty,System.Windows ImagePathProperty
Résultat System.Windows.DependencyProperty