C# Класс 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
Наследование: System.Windows.Controls.Border
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
ImagePathProperty System.Windows.DependencyProperty

Открытые методы

Метод Описание
ImageViewControl ( ) : System

Защищенные методы

Метод Описание
OnImagePathChanged ( string oldImagePath, string newImagePath ) : void

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

Приватные методы

Метод Описание
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

Описание методов

ImageViewControl() публичный Метод

public ImageViewControl ( ) : System
Результат System

OnImagePathChanged() защищенный Метод

Provides derived classes an opportunity to handle changes to the ImagePath property.
protected OnImagePathChanged ( string oldImagePath, string newImagePath ) : void
oldImagePath string
newImagePath string
Результат void

Описание свойств

ImagePathProperty публичное статическое свойство

ImagePath Dependency Property
public static DependencyProperty,System.Windows ImagePathProperty
Результат System.Windows.DependencyProperty