ComponentOne Basic Library for WPF and Silverlight
Position Method (C1Window)


C1.Silverlight Namespace > C1Window Class : Position Method
An Anchor value specifying the point in the window.
The System.Windows.FrameworkElement to use as reference.
An Anchor value specifying the point in the FrameworkElement.
Positions the window so that the specified point in the window matches the specified point of a FrameworkElement.
Syntax
'Declaration
 
Public Sub Position( _
   ByVal windowAnchor As Anchor, _
   ByVal reference As System.Windows.FrameworkElement, _
   ByVal referenceAnchor As Anchor _
) 
'Usage
 
Dim instance As C1Window
Dim windowAnchor As Anchor
Dim reference As System.Windows.FrameworkElement
Dim referenceAnchor As Anchor
 
instance.Position(windowAnchor, reference, referenceAnchor)
public void Position( 
   Anchor windowAnchor,
   System.Windows.FrameworkElement reference,
   Anchor referenceAnchor
)

Parameters

windowAnchor
An Anchor value specifying the point in the window.
reference
The System.Windows.FrameworkElement to use as reference.
referenceAnchor
An Anchor value specifying the point in the FrameworkElement.
Remarks
If the window is not yet loaded the positioning is delayed until it's loaded.
See Also

Reference

C1Window Class
C1Window Members