3 using SiliconStudio.Core.Mathematics;
4 using SiliconStudio.Paradox.UI.Panels;
6 namespace SiliconStudio.
Paradox.UI
22 element.DependencyProperties.Set(Panel.ZIndexPropertyKey, index);
34 return element.DependencyProperties.Get(Panel.ZIndexPropertyKey);
46 element.DependencyProperties.Set(Canvas.RelativeSizePropertyKey,
size);
57 return element.DependencyProperties.Get(Canvas.RelativeSizePropertyKey);
68 element.DependencyProperties.Set(Canvas.RelativePositionPropertyKey,
size);
79 return element.DependencyProperties.Get(Canvas.RelativePositionPropertyKey);
90 element.DependencyProperties.Set(Canvas.AbsolutePositionPropertyKey,
size);
101 return element.DependencyProperties.Get(Canvas.AbsolutePositionPropertyKey);
113 element.DependencyProperties.Set(Canvas.PinOriginPropertyKey,
size);
125 return element.DependencyProperties.Get(Canvas.PinOriginPropertyKey);
136 element.DependencyProperties.Set(GridBase.ColumnPropertyKey, index);
147 return element.DependencyProperties.Get(GridBase.ColumnPropertyKey);
158 element.DependencyProperties.Set(GridBase.RowPropertyKey, index);
169 return element.DependencyProperties.Get(GridBase.RowPropertyKey);
180 element.DependencyProperties.Set(GridBase.LayerPropertyKey, index);
191 return element.DependencyProperties.Get(GridBase.LayerPropertyKey);
202 element.DependencyProperties.Set(GridBase.ColumnSpanPropertyKey, index);
213 return element.DependencyProperties.Get(GridBase.ColumnSpanPropertyKey);
224 element.DependencyProperties.Set(GridBase.RowSpanPropertyKey, index);
235 return element.DependencyProperties.Get(GridBase.RowSpanPropertyKey);
246 element.DependencyProperties.Set(GridBase.LayerSpanPropertyKey, index);
257 return element.DependencyProperties.Get(GridBase.LayerSpanPropertyKey);
static void SetCanvasPinOrigin(this UIElement element, Vector3 size)
Sets the origin of the element used when pinning it into its parent canvas. This value is normalized ...
static void SetGridRow(this UIElement element, int index)
Sets the row index of the grid in which resides the element.
Provides a base class for all the User Interface elements in Paradox applications.
static void SetPanelZIndex(this UIElement element, int index)
Sets the Panel Z-index value for this element. The Panel Z-index value is used to determine which chi...
static Vector3 GetCanvasRelativePosition(this UIElement element)
Gets the relative position of the element into its parent canvas. Position is normalized between [0...
static int GetPanelZIndex(this UIElement element)
Sets the Panel Z-index value for this element. The Panel Z-index value is used to determine which chi...
static void SetGridColumn(this UIElement element, int index)
Sets the column index of the grid in which resides the element.
static Vector3 GetCanvasAbsolutePosition(this UIElement element)
Gets the absolute position of the element into its parent canvas. The position is in virtual pixels...
static void SetGridLayer(this UIElement element, int index)
Sets the layer index of the grid in which resides the element.
static void SetGridRowSpan(this UIElement element, int index)
Sets the number of row spans that the element occupies in the grid.
Represents a three dimensional mathematical vector.
static int GetGridLayerSpan(this UIElement element)
Gets the number of layer spans that the element occupies in the grid.
static void SetCanvasRelativePosition(this UIElement element, Vector3 size)
Sets the relative position of the element into its parent canvas.
static void SetCanvasAbsolutePosition(this UIElement element, Vector3 size)
Sets the absolute position of the element into its parent canvas.
static void SetGridColumnSpan(this UIElement element, int index)
Sets the number of column spans that the element occupies in the grid.
static int GetGridColumnSpan(this UIElement element)
Gets the number of column spans that the element occupies in the grid.
static int GetGridRowSpan(this UIElement element)
Gets the number of row spans that the element occupies in the grid.
static void SetGridLayerSpan(this UIElement element, int index)
Sets the number of layer spans that the element occupies in the grid.
static int GetGridColumn(this UIElement element)
Gets the column index of the grid in which resides the element.
static Vector3 GetCanvasPinOrigin(this UIElement element)
Gets the origin of the element used when pinning it into its parent canvas. This value is normalized ...
_In_ size_t _In_ size_t size
static int GetGridRow(this UIElement element)
Gets the row index of the grid in which resides the element.
static void SetCanvasRelativeSize(this UIElement element, Vector3 size)
Sets the relative size of the element with respect to its parent canvas. Set the value of any compone...
static int GetGridLayer(this UIElement element)
Gets the layer index of the grid in which resides the element.
static Vector3 GetCanvasRelativeSize(this UIElement element)
Gets the relative size of the element with respect to its parent canvas. float.NaNwhen not specified...
Extensions methods for UIElement