-
Notifications
You must be signed in to change notification settings - Fork 19
PanningGrid
Namespace: RichCanvas
Assembly: RichCanvas
Inheritance: Object → DispatcherObject → DependencyObject → Visual → UIElement → FrameworkElement → Panel → Grid → PanningGrid
Implements: IScrollInfo
References: RichItemContainer
Grid defining scrolling functionalty
public class PanningGrid : Grid, IScrollInfo
public PanningGrid();
Bottom limit of PanningGrid.ScrollOwner viewport
protected double BottomLimit { get; set; }
Property Value
Negative Vertical offset of PanningGrid.ScrollOwner
protected double BottomOffset { get; set; }
Property Value
IScrollInfo member
public virtual bool CanHorizontallyScroll { get; set; }
Property Value
IScrollInfo member
public virtual bool CanVerticallyScroll { get; set; }
Property Value
IScrollInfo member
public virtual double ExtentHeight { get; set; }
Property Value
IScrollInfo member
public virtual double ExtentWidth { get; set; }
Property Value
IScrollInfo member
public virtual double HorizontalOffset { get; set; }
Property Value
Left limit of PanningGrid.ScrollOwner viewport
protected double LeftLimit { get; set; }
Property Value
Positive Horizontal offset of PanningGrid.ScrollOwner
protected double LeftOffset { get; set; }
Property Value
Right limit of PanningGrid.ScrollOwner viewport
protected double RightLimit { get; set; }
Property Value
Negative Horizontal offset of PanningGrid.ScrollOwner
protected double RightOffset { get; set; }
Property Value
IScrollInfo member
public virtual ScrollViewer ScrollOwner { get; set; }
Property Value
Top limit of PanningGrid.ScrollOwner viewport
protected double TopLimit { get; set; }
Property Value
Positive Vertical offset of PanningGrid.ScrollOwner
protected double TopOffset { get; set; }
Property Value
IScrollInfo member
public virtual double VerticalOffset { get; set; }
Property Value
IScrollInfo member
public virtual double ViewportHeight { get; set; }
Property Value
IScrollInfo member
public virtual double ViewportWidth { get; set; }
Property Value
protected override Size ArrangeOverride(Size arrangeSize);
Parameters
arrangeSize
Size
Returns
IScrollInfo method
public virtual void LineDown();
IScrollInfo method
public virtual void LineLeft();
IScrollInfo method
public virtual void LineRight();
IScrollInfo method
public virtual void LineUp();
IScrollInfo method used when BringIntoView() is called on RichItemContainer
public virtual Rect MakeVisible(Visual visual, Rect rectangle);
Parameters
visual
Visual
rectangle
Rect
Returns
protected override Size MeasureOverride(Size constraint);
Parameters
constraint
Size
Returns
IScrollInfo method
public virtual void MouseWheelDown();
IScrollInfo method
public virtual void MouseWheelLeft();
IScrollInfo method
public virtual void MouseWheelRight();
IScrollInfo method
public virtual void MouseWheelUp();
protected override void OnMouseUp(MouseButtonEventArgs e);
Parameters
protected override void OnPreviewMouseLeftButtonDown(MouseButtonEventArgs e);
Parameters
protected override void OnPreviewMouseMove(MouseEventArgs e);
Parameters
protected override void OnPreviewMouseWheel(MouseWheelEventArgs e);
Parameters
IScrollInfo method
public virtual void PageDown();
IScrollInfo method
public virtual void PageLeft();
IScrollInfo method
public virtual void PageRight();
IScrollInfo method
public virtual void PageUp();
Scrolls and translates horizontally the PanningGrid.ScrollOwner viewport
public void PanHorizontally(double offset);
Parameters
offset
Double: Scroll factor which determines the speed
Scrolls and translates vertically the PanningGrid.ScrollOwner viewport
public void PanVertically(double offset);
Parameters
offset
Double: Scroll factor which determines the speed
IScrollInfo method
public virtual void SetHorizontalOffset(double offset);
Parameters
offset
Double
IScrollInfo method
public virtual void SetVerticalOffset(double offset);
Parameters
offset
Double
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