ContentPresenter Class
Namespace: Stride.UI.ControlsAssembly: Stride.UI.dll
A class aiming at presenting another UIElement.
Derived from ContentPresenter:
[DataContract("ContentPresenter")]
[Obsolete("This class has no effect and shouldn't be used. Consider one of the classes that inherit from ContentControl.")]
public class ContentPresenter : UIElement, IUIElementUpdate, IUIElementChildren, IIdentifiable
Name | Description | |
---|---|---|
Constructors | ||
ContentPresenter() | ||
Properties | ||
Content | Gets or sets the content of the presenter. |
|
Methods | ||
ArrangeOverride(Vector3) | ||
EnumerateChildren() | Enumerates the children of this element. |
|
MeasureOverride(Vector3) | ||
UpdateWorldMatrix(ref Matrix, Boolean) |
Constructors
ContentPresenter()
public ContentPresenter()
Properties
Content
Gets or sets the content of the presenter.
[DataMember]
public UIElement Content { get; set; }
Property Value
Type | Description |
---|---|
UIElement |
Methods
ArrangeOverride(Vector3)
protected override Vector3 ArrangeOverride(Vector3 finalSizeWithoutMargins)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | finalSizeWithoutMargins |
Returns
Type | Description |
---|---|
Vector3 |
Overrides
EnumerateChildren()
Enumerates the children of this element.
protected override IEnumerable<IUIElementChildren> EnumerateChildren()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IUIElementChildren> | A sequence containing all the children of this element. |
Overrides
Remarks
This method is used by the implementation of the IUIElementChildren interface.
MeasureOverride(Vector3)
protected override Vector3 MeasureOverride(Vector3 availableSizeWithoutMargins)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | availableSizeWithoutMargins |
Returns
Type | Description |
---|---|
Vector3 |
Overrides
UpdateWorldMatrix(ref Matrix, Boolean)
protected override void UpdateWorldMatrix(ref Matrix parentWorldMatrix, bool parentWorldChanged)
Parameters
Type | Name | Description |
---|---|---|
Matrix | parentWorldMatrix | |
System.Boolean | parentWorldChanged |