MainGrid

StockSharp.Xaml.Charting.Visuals

Defines the Maingrid, a root grid which hosts the UltrachartSurface

Inherits: Grid

Implements: IMainGrid, IPublishMouseEvents, IHitTestable

Constructors

MainGrid
public MainGrid()
mainGrid = MainGrid()

Initializes a new instance of the MainGrid class.

Methods

GetBoundsRelativeTo
public Rect GetBoundsRelativeTo(IHitTestable relativeTo)
result = mainGrid.GetBoundsRelativeTo(relativeTo)

Gets the bounds of the current HitTestable element relative to another HitTestable element

relativeTo
The relative to.
IsPointWithinBounds
public bool IsPointWithinBounds(Point point)
result = mainGrid.IsPointWithinBounds(point)

Returns true if the Point is within the bounds of the current HitTestable element

point
The point to test

Returns: true if the Point is within the bounds

TranslatePoint
public Point TranslatePoint(Point point, IHitTestable relativeTo)
result = mainGrid.TranslatePoint(point, relativeTo)

Translates the point relative to the other hittestable element

point
The point.
relativeTo
The relative to.

Events

MouseMiddleButtonDown
public event MouseButtonEventHandler MouseMiddleButtonDown
mainGrid.MouseMiddleButtonDown += handler

Occurs when the middle mouse button is pressed while the mouse pointer is over a UIElement.

MouseMiddleButtonUp
public event MouseButtonEventHandler MouseMiddleButtonUp
mainGrid.MouseMiddleButtonUp += handler

Occurs when the middle mouse button is released while the mouse pointer is over a UIElement. However, this event will only be raised if a caller marks the preceding MouseRightButtonDown event as handled; see Remarks.

TouchDown
public event EventHandler<TouchManipulationEventArgs> TouchDown
mainGrid.TouchDown += handler

Occurs when an input device begins a manipulation on the UIElement.

TouchMove
public event EventHandler<TouchManipulationEventArgs> TouchMove
mainGrid.TouchMove += handler

Occurs when an input device changes position during manipulation.

TouchUp
public event EventHandler<TouchManipulationEventArgs> TouchUp
mainGrid.TouchUp += handler

Occurs when a manipulation and inertia on the UIElement object is complete.