Silverlight SDK for Microsoft Bing
AlignVisualBounds Method (visual, size, rect, alignX, alignY)
OverviewSystem.WindowsLayoutHelperAlignVisualBounds(UIElement, Size, Rect, AlignmentX, AlignmentY)
Aligns a UIElement instance within a given rectangle, and based on a specific size.
Declaration Syntax
C#Visual BasicVisual C++
public static void AlignVisualBounds(
	UIElement visual,
	Size size,
	Rect rect,
	AlignmentX alignX,
	AlignmentY alignY
)
Public Shared Sub AlignVisualBounds ( _
	visual As UIElement, _
	size As Size, _
	rect As Rect, _
	alignX As AlignmentX, _
	alignY As AlignmentY _
)
public:
static void AlignVisualBounds(
	UIElement^ visual, 
	Size size, 
	Rect rect, 
	AlignmentX alignX, 
	AlignmentY alignY
)
Parameters
visual (UIElement)
The visual to align
size (Size)
The logical size of the visual
rect (Rect)
The Rect which describes the bounds in which to align the visual
alignX (AlignmentX)
The horizontal alignment within the rectangle
alignY (AlignmentY)
The vertical alignment within the rectangle

Assembly: System.Windows.Controls.Views.Toolkit (Module: System.Windows.Controls.Views.Toolkit) Version: 1.0.0.0 (1.0.0.0)