4 using System.Diagnostics;
6 using SiliconStudio.Core;
7 using SiliconStudio.Core.Mathematics;
9 namespace SiliconStudio.
Paradox.UI.Panels
14 [DebuggerDisplay(
"GridBase - Name={Name}")]
53 private static void InvalidateParentGridMeasure(
object propertyowner,
PropertyKey<int> propertykey,
int propertyoldvalue)
56 var parentGridBase = element.Parent as
GridBase;
58 if(parentGridBase != null)
59 parentGridBase.InvalidateMeasure();
62 private static void SpanValidator(ref
int value)
65 throw new ArgumentOutOfRangeException(
"value");
77 element.DependencyProperties.Get(RowSpanPropertyKey),
90 element.DependencyProperties.Get(RowPropertyKey),
100 var intValues = GetElementSpanValues(element);
102 return new Vector3(intValues.X, intValues.Y, intValues.Z);
112 var intValues = GetElementGridPositions(element);
114 return new Vector3(intValues.X, intValues.Y, intValues.Z);
Provides a base class for all the User Interface elements in Paradox applications.
Represents a three dimensional mathematical vector.
Represents a three dimensional mathematical vector.
Represents the base primitive for all the grid-like controls
Vector3 GetElementSpanValuesAsFloat(UIElement element)
Get an element span values as an Vector3.
Int3 GetElementGridPositions(UIElement element)
Get the positions of an element in the grid as an Int3.
SiliconStudio.Core.Mathematics.Vector3 Vector3
Int3 GetElementSpanValues(UIElement element)
Get an element span values as an Int3.
Vector3 GetElementGridPositionsAsFloat(UIElement element)
Get the positions of an element in the grid as an Vector3.
A class that represents a tag propety.
object Get(PropertyKey propertyKey)
Gets the specified tag value.
PropertyContainer DependencyProperties
List of the dependency properties attached to the object.
Provides a base class for all Panel elements. Use Panel elements to position and arrange child object...