Class DefaultPlacementBehavior
- Namespace
- Alternet.FormDesigner.Wpf
- Assembly
- Alternet.FormDesigner.Wpf.v10.dll
Represents a default behavior interface for the designed item.
[ExtensionFor(typeof(Panel))]
[ExtensionFor(typeof(Control))]
[ExtensionFor(typeof(Border))]
[ExtensionFor(typeof(Viewbox))]
[ExtensionFor(typeof(ArrayExtension))]
public class DefaultPlacementBehavior : BehaviorExtension, IPlacementBehavior
- Inheritance
-
DefaultPlacementBehavior
- Implements
- Derived
Properties
- SetSelectionOnPlacedItems
Gets or sets a value indicating whether current selection should be replaced.
Methods
- BeforeSetPosition(PlacementOperation)
Is called before SetPosition is called for the placed items. This may update the bounds on the placement operation (e.g. when snaplines are enabled).
- BeginPlacement(PlacementOperation)
Starts placement mode for this container.
- CanEnterContainer(PlacementOperation, bool)
Gets if entering this container is allowed for the specified operation.
- CanLeaveContainer(PlacementOperation)
Gets if leaving this container is allowed for the specified operation.
- CanPlace(IEnumerable<DesignItem>, PlacementType, PlacementAlignment)
Indicates whether the child element can be moved, resized, and so on.
- CanPlaceItem(PlacementInformation)
Indicates whether the element can placed according to the placement information.
- EndPlacement(PlacementOperation)
Ends placement mode for this container.
- EnterContainer(PlacementOperation)
Let the placed children enter this container.
- GetPosition(PlacementOperation, DesignItem)
Gets the original position of the child item.
- GetPositionRelativeToContainer(PlacementOperation, DesignItem)
Gets the position of the child item concerning the given container.
- LeaveContainer(PlacementOperation)
Remove the placed children from this container.
- OnInitialized()
Is called after the ExtendedItem was set. Override this method to register your behavior with the item.
- PlacePoint(Point)
Returns a placement position.
- SetPosition(PlacementInformation)
Updates the placement of the element specified in the placement operation.