C# Класс BaconographyWP8.View.ScalingGifView

Наследование: System.Windows.Controls.UserControl
Показать файл Открыть проект

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

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

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

Метод Описание
CoerceScale ( bool recompute ) : void

Coerce the scale into being within the proper range. Optionally compute the constraints on the scale so that it will always fill the entire screen and will never get too big to be contained in a hardware surface.

ResizeImage ( bool center ) : void

Adjust the size of the image according to the coerced scale factor. Optionally center the image, otherwise, try to keep the original midpoint of the pinch in the same spot on the screen regardless of the scale.

ScalingGifView ( ) : System.Linq
ScalingGifView_Loaded ( object sender, RoutedEventArgs e ) : void
viewport_ViewportChanged ( object sender, System e ) : void

Either the user has manipulated the image or the size of the viewport has changed. We only care about the size.

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

Метод Описание
CoerceScaleImpl ( double viewWidth, double viewHeight, double bitmapWidth, double bitmapHeight, double scale ) : double>.Tuple
SetContentProvider ( byte asset ) : void
SetContentProvider ( string sourceUrl ) : void
myGridGestureListener_DoubleTap ( object sender, Microsoft e ) : void
myGridGestureListener_PinchCompleted ( object sender, Microsoft.Phone.Controls.PinchGestureEventArgs e ) : void
myGridGestureListener_PinchDelta ( object sender, Microsoft.Phone.Controls.PinchGestureEventArgs e ) : void
myGridGestureListener_PinchStarted ( object sender, Microsoft.Phone.Controls.PinchStartedGestureEventArgs e ) : void

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

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

Coerce the scale into being within the proper range. Optionally compute the constraints on the scale so that it will always fill the entire screen and will never get too big to be contained in a hardware surface.
public CoerceScale ( bool recompute ) : void
recompute bool Will recompute the min max scale if true.
Результат void

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

Adjust the size of the image according to the coerced scale factor. Optionally center the image, otherwise, try to keep the original midpoint of the pinch in the same spot on the screen regardless of the scale.
public ResizeImage ( bool center ) : void
center bool
Результат void

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

public ScalingGifView ( ) : System.Linq
Результат System.Linq

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

public ScalingGifView_Loaded ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
Результат void

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

Either the user has manipulated the image or the size of the viewport has changed. We only care about the size.
public viewport_ViewportChanged ( object sender, System e ) : void
sender object
e System
Результат void

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

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

public static DependencyProperty,System.Windows ImageSourceProperty
Результат System.Windows.DependencyProperty