MainGrid
Defines the Maingrid, a root grid which hosts the UltrachartSurface
Inherits: Grid
Implements: IMainGrid, IPublishMouseEvents, IHitTestable
Constructors
Methods
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.
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
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
public event MouseButtonEventHandler MouseMiddleButtonDown
mainGrid.MouseMiddleButtonDown += handler
Occurs when the middle mouse button is pressed while the mouse pointer is over a UIElement.
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.
public event EventHandler<TouchManipulationEventArgs> TouchDown
mainGrid.TouchDown += handler
Occurs when an input device begins a manipulation on the UIElement.
public event EventHandler<TouchManipulationEventArgs> TouchMove
mainGrid.TouchMove += handler
Occurs when an input device changes position during manipulation.
public event EventHandler<TouchManipulationEventArgs> TouchUp
mainGrid.TouchUp += handler
Occurs when a manipulation and inertia on the UIElement object is complete.