Skip to content

PanningGrid

Mircea Staicu edited this page Jul 20, 2021 · 1 revision

PanningGrid Class

Namespace: RichCanvas

Assembly: RichCanvas

Inheritance: ObjectDispatcherObjectDependencyObjectVisualUIElementFrameworkElementPanelGridPanningGrid

Implements: IScrollInfo

References: RichItemContainer

Grid defining scrolling functionalty

public class PanningGrid : Grid, IScrollInfo  

Constructors

PanningGrid()

public PanningGrid();  

Properties

BottomLimit

Bottom limit of PanningGrid.ScrollOwner viewport

protected double BottomLimit { get; set; }  

Property Value

Double

BottomOffset

Negative Vertical offset of PanningGrid.ScrollOwner

protected double BottomOffset { get; set; }  

Property Value

Double

CanHorizontallyScroll

IScrollInfo member

public virtual bool CanHorizontallyScroll { get; set; }  

Property Value

Boolean

CanVerticallyScroll

IScrollInfo member

public virtual bool CanVerticallyScroll { get; set; }  

Property Value

Boolean

ExtentHeight

IScrollInfo member

public virtual double ExtentHeight { get; set; }  

Property Value

Double

ExtentWidth

IScrollInfo member

public virtual double ExtentWidth { get; set; }  

Property Value

Double

HorizontalOffset

IScrollInfo member

public virtual double HorizontalOffset { get; set; }  

Property Value

Double

LeftLimit

Left limit of PanningGrid.ScrollOwner viewport

protected double LeftLimit { get; set; }  

Property Value

Double

LeftOffset

Positive Horizontal offset of PanningGrid.ScrollOwner

protected double LeftOffset { get; set; }  

Property Value

Double

RightLimit

Right limit of PanningGrid.ScrollOwner viewport

protected double RightLimit { get; set; }  

Property Value

Double

RightOffset

Negative Horizontal offset of PanningGrid.ScrollOwner

protected double RightOffset { get; set; }  

Property Value

Double

ScrollOwner

IScrollInfo member

public virtual ScrollViewer ScrollOwner { get; set; }  

Property Value

ScrollViewer

TopLimit

Top limit of PanningGrid.ScrollOwner viewport

protected double TopLimit { get; set; }  

Property Value

Double

TopOffset

Positive Vertical offset of PanningGrid.ScrollOwner

protected double TopOffset { get; set; }  

Property Value

Double

VerticalOffset

IScrollInfo member

public virtual double VerticalOffset { get; set; }  

Property Value

Double

ViewportHeight

IScrollInfo member

public virtual double ViewportHeight { get; set; }  

Property Value

Double

ViewportWidth

IScrollInfo member

public virtual double ViewportWidth { get; set; }  

Property Value

Double

Methods

ArrangeOverride(Size)

protected override Size ArrangeOverride(Size arrangeSize);  

Parameters

arrangeSize Size

Returns

Size

LineDown()

IScrollInfo method

public virtual void LineDown();  

LineLeft()

IScrollInfo method

public virtual void LineLeft();  

LineRight()

IScrollInfo method

public virtual void LineRight();  

LineUp()

IScrollInfo method

public virtual void LineUp();  

MakeVisible(Visual, Rect)

IScrollInfo method used when BringIntoView() is called on RichItemContainer

public virtual Rect MakeVisible(Visual visual, Rect rectangle);  

Parameters

visual Visual

rectangle Rect

Returns

Rect

MeasureOverride(Size)

protected override Size MeasureOverride(Size constraint);  

Parameters

constraint Size

Returns

Size

MouseWheelDown()

IScrollInfo method

public virtual void MouseWheelDown();  

MouseWheelLeft()

IScrollInfo method

public virtual void MouseWheelLeft();  

MouseWheelRight()

IScrollInfo method

public virtual void MouseWheelRight();  

MouseWheelUp()

IScrollInfo method

public virtual void MouseWheelUp();  

OnMouseUp(MouseButtonEventArgs)

protected override void OnMouseUp(MouseButtonEventArgs e);  

Parameters

e MouseButtonEventArgs

OnPreviewMouseLeftButtonDown(MouseButtonEventArgs)

protected override void OnPreviewMouseLeftButtonDown(MouseButtonEventArgs e);  

Parameters

e MouseButtonEventArgs

OnPreviewMouseMove(MouseEventArgs)

protected override void OnPreviewMouseMove(MouseEventArgs e);  

Parameters

e MouseEventArgs

OnPreviewMouseWheel(MouseWheelEventArgs)

protected override void OnPreviewMouseWheel(MouseWheelEventArgs e);  

Parameters

e MouseWheelEventArgs

PageDown()

IScrollInfo method

public virtual void PageDown();  

PageLeft()

IScrollInfo method

public virtual void PageLeft();  

PageRight()

IScrollInfo method

public virtual void PageRight();  

PageUp()

IScrollInfo method

public virtual void PageUp();  

PanHorizontally(Double)

Scrolls and translates horizontally the PanningGrid.ScrollOwner viewport

public void PanHorizontally(double offset);  

Parameters

offset Double: Scroll factor which determines the speed

PanVertically(Double)

Scrolls and translates vertically the PanningGrid.ScrollOwner viewport

public void PanVertically(double offset);  

Parameters

offset Double: Scroll factor which determines the speed

SetHorizontalOffset(Double)

IScrollInfo method

public virtual void SetHorizontalOffset(double offset);  

Parameters

offset Double

SetVerticalOffset(Double)

IScrollInfo method

public virtual void SetVerticalOffset(double offset);  

Parameters

offset Double

Zoom(Point, Int32)

Zooms at the specified position

public void Zoom(Point position, int delta);  

Parameters

position Point: Mouse position to zoom at

delta Int32: Determines whether to zoom in or out by the sign