ArcFM Solution Developer Guide
AddResizeAdorner(FrameworkElement,Canvas,Func<SnapToGridAttributes>,Action<SnapToGridStateChangedEventArgs>,SolidColorBrush) Method


The element.
The parent.
SnapToGrid callback Func
SnapToGrid callback Action
Color for the dashed line that connects the adorner resize handles
Adds the resize adorner.
Syntax
'Declaration
 
Public Overloads Shared Sub AddResizeAdorner( _
   ByVal element As System.Windows.FrameworkElement, _
   ByVal parent As System.Windows.Controls.Canvas, _
   ByVal getSnapToGridAttributes As System.Func(Of SnapToGridAttributes), _
   ByVal invokeSnapToGridStateChanged As System.Action(Of SnapToGridStateChangedEventArgs), _
   ByVal adornerDashedLineColor As System.Windows.Media.SolidColorBrush _
) 
'Usage
 
Dim element As System.Windows.FrameworkElement
Dim parent As System.Windows.Controls.Canvas
Dim getSnapToGridAttributes As System.Func(Of SnapToGridAttributes)
Dim invokeSnapToGridStateChanged As System.Action(Of SnapToGridStateChangedEventArgs)
Dim adornerDashedLineColor As System.Windows.Media.SolidColorBrush
 
ElementCanvasExtensions.AddResizeAdorner(element, parent, getSnapToGridAttributes, invokeSnapToGridStateChanged, adornerDashedLineColor)
public static void AddResizeAdorner( 
   System.Windows.FrameworkElement element,
   System.Windows.Controls.Canvas parent,
   System.Func<SnapToGridAttributes> getSnapToGridAttributes,
   System.Action<SnapToGridStateChangedEventArgs> invokeSnapToGridStateChanged,
   System.Windows.Media.SolidColorBrush adornerDashedLineColor
)

Parameters

element
The element.
parent
The parent.
getSnapToGridAttributes
SnapToGrid callback Func
invokeSnapToGridStateChanged
SnapToGrid callback Action
adornerDashedLineColor
Color for the dashed line that connects the adorner resize handles
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

ElementCanvasExtensions Class
ElementCanvasExtensions Members
Overload List

 

 


Send Comment