C# 클래스 BaconographyWP8.View.ScalingGifView

상속: System.Windows.Controls.UserControl
파일 보기 프로젝트 열기: Synergex/Baconography

공개 프로퍼티들

프로퍼티 타입 설명
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