Class WrapPanel
Positions child elements in sequential position from left to right, breaking
content to the next line at the edge of the containing box. Subsequent ordering
happens sequentially from top to bottom or from right to left, depending
on the value of the System.Windows.Controls.WrapPanel.Orientation property.
Inheritance
System.Object
WrapPanel
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: OpenSilver.dll
Syntax
public class WrapPanel : Panel
Examples
You can add a WrapPanel to the XAML as follows:
Or in C#:
WrapPanel myWrapPanel = new WrapPanel();
myWrapPanel.Width = 100;
myWrapPanel.Height = 100;
myWrapPanel.Background = new SolidColorBrush(Windows.UI.Colors.Blue);
myWrapPanel.HorizontalAlignment=HorizontalAlignment.Left;
//Then you can add the children element using myWrapPanel.Children.Add(...).
//Do not forget to add the WrapPanel itself to the visual tree.
Constructors
|
Improve this Doc
View Source
WrapPanel()
Initializes a new instance of the System.Windows.Controls.WrapPanel class.
Declaration
Fields
|
Improve this Doc
View Source
ItemHeightProperty
Declaration
[NotImplemented]
public static readonly DependencyProperty ItemHeightProperty
Field Value
|
Improve this Doc
View Source
ItemWidthProperty
Declaration
[NotImplemented]
public static readonly DependencyProperty ItemWidthProperty
Field Value
|
Improve this Doc
View Source
OrientationProperty
Identifies the Orientation dependency property.
Declaration
public static readonly DependencyProperty OrientationProperty
Field Value
Properties
|
Improve this Doc
View Source
ItemHeight
Declaration
[NotImplemented]
public double ItemHeight { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
ItemWidth
Declaration
[NotImplemented]
public double ItemWidth { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Orientation
Gets or sets a value that specifies the dimension in which child content
is arranged.
Declaration
public Orientation Orientation { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
ArrangeOverride(Size)
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
Type |
Name |
Description |
Size |
finalSize |
|
Returns
Overrides
|
Improve this Doc
View Source
CreateDomChildWrapper(Object, out Object, Int32)
Declaration
public override object CreateDomChildWrapper(object parentRef, out object domElementWhereToPlaceChild, int index = -1)
Parameters
Type |
Name |
Description |
System.Object |
parentRef |
|
System.Object |
domElementWhereToPlaceChild |
|
System.Int32 |
index |
|
Returns
Type |
Description |
System.Object |
|
Overrides
|
Improve this Doc
View Source
CreateDomElement(Object, out Object)
Declaration
public override object CreateDomElement(object parentRef, out object domElementWhereToPlaceChildren)
Parameters
Type |
Name |
Description |
System.Object |
parentRef |
|
System.Object |
domElementWhereToPlaceChildren |
|
Returns
Type |
Description |
System.Object |
|
Overrides
|
Improve this Doc
View Source
MeasureOverride(Size)
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type |
Name |
Description |
Size |
availableSize |
|
Returns
Overrides
Extension Methods