Class LayoutTransformer
Represents a control that applies a layout transformation to its Content.
Inheritance
Namespace: Syncfusion.Windows.Controls.Layout
Assembly: Syncfusion.SfAccordion.WPF.dll
Syntax
public sealed class LayoutTransformer : ContentControl
Constructors
LayoutTransformer()
Initializes a new instance of the LayoutTransformer class.
Declaration
public LayoutTransformer()
Fields
LayoutTransformProperty
Identifies the LayoutTransform DependencyProperty.
Declaration
public static readonly DependencyProperty LayoutTransformProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
LayoutTransform
Gets or sets the layout transform to apply on the LayoutTransformer control content.
Declaration
public Transform LayoutTransform { get; set; }
Property Value
Type |
---|
System.Windows.Media.Transform |
Remarks
Corresponds to UIElement.LayoutTransform.
Methods
ApplyLayoutTransform()
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 |
---|---|---|
System.Windows.Size | finalSize | The final area within the parent that this element should use to arrange itself and its children. |
Returns
Type | Description |
---|---|
System.Windows.Size | The actual size used. |
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 |
---|---|---|
System.Windows.Size | availableSize | The available size that this element can give to child elements. |
Returns
Type | Description |
---|---|
System.Windows.Size | The size that this element determines it needs during layout, based on its calculations of child element sizes. |
OnApplyTemplate()
Builds the visual tree for the LayoutTransformer control when a new template is applied.
Declaration
public override void OnApplyTemplate()