Class LayoutTransformer
Represents a control that applies a layout transformation to its Content.
Inheritance
Inherited Members
Namespace: System.Windows.Controls
Assembly: Controls.Layout.Toolkit.OpenSilver.dll
Syntax
public sealed class LayoutTransformer : ContentControl
Constructors
| Improve this Doc View SourceLayoutTransformer()
Initializes a new instance of the LayoutTransformer class.
Declaration
public LayoutTransformer()
Fields
| Improve this Doc View SourceLayoutTransformProperty
Identifies the LayoutTransform DependencyProperty.
Declaration
public static readonly DependencyProperty LayoutTransformProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceLayoutTransform
Gets or sets the layout transform to apply on the LayoutTransformer control content.
Declaration
public Transform LayoutTransform { get; set; }
Property Value
Type | Description |
---|---|
Transform |
Remarks
Corresponds to UIElement.LayoutTransform.
Methods
| Improve this Doc View SourceApplyLayoutTransform()
Applies the layout transform on the LayoutTransformer control content.
Declaration
public void ApplyLayoutTransform()
Remarks
Only used in advanced scenarios (like animating the LayoutTransform). Should be used to notify the LayoutTransformer control that some aspect of its Transform property has changed.
ArrangeOverride(Size)
Provides the behavior for the "Arrange" pass of layout.
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
Type | Name | Description |
---|---|---|
Size | finalSize | The final area within the parent that this element should use to arrange itself and its children. |
Returns
Type | Description |
---|---|
Size | The actual size used. |
Overrides
Remarks
Using the WPF paramater name finalSize instead of Silverlight's finalSize for clarity
MeasureOverride(Size)
Provides the behavior for the "Measure" pass of layout.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
Size | availableSize | The available size that this element can give to child elements. |
Returns
Type | Description |
---|---|
Size | The size that this element determines it needs during layout, based on its calculations of child element sizes. |
Overrides
| Improve this Doc View SourceOnApplyTemplate()
Builds the visual tree for the LayoutTransformer control when a new template is applied.
Declaration
public override void OnApplyTemplate()