C# Class Avalonia.Controls.PanAndZoom.ZoomBorder

Inheritance: Border
Mostra file Open project: wieslawsoltes/MatrixPanAndZoomDemo Class Usage Examples

Public Properties

Property Type Description
AutoFitModeProperty AvaloniaProperty
ZoomSpeedProperty AvaloniaProperty

Public Methods

Method Description
AutoFit ( ) : void

AutoFit ( Rect panelSize, Rect elementSize ) : void

Extent ( ) : void

Extent ( Rect panelSize, Rect elementSize ) : void

Fill ( ) : void

Fill ( Rect panelSize, Rect elementSize ) : void

FixInvalidPointPosition ( System.Point point ) : System.Point

Invalidate ( ) : void

PanTo ( System.Point point ) : void

Reset ( ) : void

StartPan ( System.Point point ) : void

ToggleAutoFitMode ( ) : void

ZoomDeltaTo ( double delta, System.Point point ) : void

ZoomTo ( double zoom, System.Point point ) : void

Protected Methods

Method Description
ArrangeOverride ( Size finalSize ) : Size

Private Methods

Method Description
Border_PointerMoved ( object sender, Avalonia.Input.PointerEventArgs e ) : void
Border_PointerPressed ( object sender, Avalonia.Input.PointerPressedEventArgs e ) : void
Border_PointerReleased ( object sender, Avalonia.Input.PointerReleasedEventArgs e ) : void
Border_PointerWheelChanged ( object sender, Avalonia.Input.PointerWheelEventArgs e ) : void
Initialize ( IControl element ) : void
PanAndZoom_DetachedFromVisualTree ( object sender, VisualTreeAttachmentEventArgs e ) : void
Unload ( ) : void
ZoomBorder ( ) : System

Method Details

ArrangeOverride() protected method

protected ArrangeOverride ( Size finalSize ) : Size
finalSize Size
return Size

AutoFit() public method

public AutoFit ( ) : void
return void

AutoFit() public method

public AutoFit ( Rect panelSize, Rect elementSize ) : void
panelSize Rect
elementSize Rect
return void

Extent() public method

public Extent ( ) : void
return void

Extent() public method

public Extent ( Rect panelSize, Rect elementSize ) : void
panelSize Rect
elementSize Rect
return void

Fill() public method

public Fill ( ) : void
return void

Fill() public method

public Fill ( Rect panelSize, Rect elementSize ) : void
panelSize Rect
elementSize Rect
return void

FixInvalidPointPosition() public method

public FixInvalidPointPosition ( System.Point point ) : System.Point
point System.Point
return System.Point

Invalidate() public method

public Invalidate ( ) : void
return void

PanTo() public method

public PanTo ( System.Point point ) : void
point System.Point
return void

Reset() public method

public Reset ( ) : void
return void

StartPan() public method

public StartPan ( System.Point point ) : void
point System.Point
return void

ToggleAutoFitMode() public method

public ToggleAutoFitMode ( ) : void
return void

ZoomDeltaTo() public method

public ZoomDeltaTo ( double delta, System.Point point ) : void
delta double
point System.Point
return void

ZoomTo() public method

public ZoomTo ( double zoom, System.Point point ) : void
zoom double
point System.Point
return void

Property Details

AutoFitModeProperty public_oe static_oe property

public static AvaloniaProperty AutoFitModeProperty
return AvaloniaProperty

ZoomSpeedProperty public_oe static_oe property

public static AvaloniaProperty ZoomSpeedProperty
return AvaloniaProperty