Canvas Extension 1.0

Extension methods for the Canvas class.

Methods

  • canvas.GetCenter(FrameworkElement element) -- Retrieves a Point representing the center of the specified element within the contained canvas. NOTE: There is another way to calculate this that isn't specific to Canvas, but creating it hasn't been a priority. Let us know if it is for you.
  • CanvasExtension.GetCenter(Point topLeft, Size size) -- Retrieves a Point representing the center of a control with the specified topLeft point and given size.
  • canvas.InClientArea(FrameworkElement element, Point point) -- Indicates whether the specified point falls within the area taken up by the specified element. NOTE: There is another way to calculate this that isn't specific to Canvas, but creating it hasn't been a priority. Let us know if it is for you.
  • CanvasExtension.InClientArea(Point topLeft, Size size, Point point) -- Indicates whether the specified point falls within the area defined by the specified topLeft point and given size.

Details

Assembly: Synergy.Windows
Namespace: Synergy.Windows.Extensions
Class: CanvasExtension

Last edited Jan 11, 2010 at 1:36 AM by flanakin, version 2

Comments

No comments yet.