Class ModelTools
- Namespace
- Alternet.FormDesigner.Wpf
- Assembly
- Alternet.FormDesigner.Wpf.v10.dll
Static helper methods for working with the designer DOM.
public static class ModelTools
- Inheritance
-
ModelTools
Methods
- ApplyTransform(DesignItem, Transform, bool)
Applies specific transformation to the given item.
- ArrangeItems(IEnumerable<DesignItem>, ArrangeDirection)
Arranges given items to the specified direction.
- CanDeleteComponents(ICollection<DesignItem>)
Gets if the specified components can be deleted.
- CanSelectComponent(DesignItem)
Gets if the specified component can be selected.
- ComparePositionInModelFile(DesignItem, DesignItem)
Compares the positions of a and b in the model file.
- DeleteComponents(ICollection<DesignItem>)
Deletes the specified components from their parent containers. If the deleted components are currently selected, they are deselected before they are deleted.
- GetHeight(UIElement)
Safely calculates height of the given element.
- GetWidth(UIElement)
Safely calculates width of the given element.
- IsComponentCollapsed(DesignItem)
Indicates whether given component is in the collapsed state.
- IsInDocument(DesignItem)
Indicates if the specified design item is contained in the document.
- Resize(DesignItem, double, double)
Resizes given item to the new dimensions.
- StretchItems(IEnumerable<DesignItem>, StretchDirection)
Stretches given items to the specified direction.
- TryGetSkewTransform(DesignItem)
Tries to retrieve current
SkewTransform
for the given item.
- WrapItemsNewContainer(IEnumerable<DesignItem>, Type, bool)
Wraps given items into the specified container.