Class WrapPanelExt
This class is used as item panel for GalleryGroup in Gallery in standard visual mode.
Inheritance
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class WrapPanelExt : Panel
Constructors
WrapPanelExt()
Initializes a new instance of the WrapPanelExt class.
Declaration
public WrapPanelExt()
Fields
ItemLocationProperty
Identifies ItemLocation dependency property.
Declaration
public static readonly DependencyProperty ItemLocationProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ItemTargetProperty
Identifies ItemTarget dependency property.
Declaration
public static readonly DependencyProperty ItemTargetProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
RunningAnimationProperty
Identifies WrapPanelExt.RunningAnimation dependency property.
Declaration
public static readonly DependencyProperty RunningAnimationProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
VelocityProperty
Identifies Velocity dependency property.
Declaration
public static readonly DependencyProperty VelocityProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
AllowedAnimations
Gets or sets the value indicating the allowed animations.
Declaration
public AllowedAnimations AllowedAnimations { get; set; }
Property Value
Type | Description |
---|---|
AllowedAnimations | Type: AllowedAnimations Default value is AllowedAnimations.All. |
See Also
AllowedItemResizeMode
Gets or sets the value that describes how item size should be changed, when panel size is changing. This is dependency property.
Declaration
public AllowedItemResizeModes AllowedItemResizeMode { get; set; }
Property Value
Type | Description |
---|---|
AllowedItemResizeModes | Type: AllowedItemResizeModes Default value is AllowedItemResizeModes.None |
See Also
AllowVaryingItemSize
Gets or sets the size of the allow varying item.
Declaration
public bool AllowVaryingItemSize { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The size of the allow varying item. |
ArrangedItems
Gets collection of arranged items.
Declaration
public ItemsCollection ArrangedItems { get; }
Property Value
Type | Description |
---|---|
ItemsCollection | Type: ItemsCollection |
ItemHeight
Gets or sets the value that represents height of arranged items. This is dependency property.
Declaration
public double ItemHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Type: System.Double Default value is 50. |
ItemMaxHeight
Gets or sets the maximal value of ItemHeight property. This is dependency property.
Declaration
public double ItemMaxHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Type: System.Double Default value is 0. |
ItemMaxWidth
Gets or sets the maximal value of ItemWidth property. This is dependency property.
Declaration
public double ItemMaxWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Type: System.Double Default value is 100. |
ItemMinHeight
Gets or sets the minimal value of ItemHeight property. This is dependency property.
Declaration
public double ItemMinHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Type: System.Double Default value is 0. |
ItemMinWidth
Gets or sets the minimal value of ItemWidth property. This is dependency property.
Declaration
public double ItemMinWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Type: System.Double Default value is 0. |
ItemWidth
Gets or sets the value that represents width of arranged items. This is dependency property.
Declaration
public double ItemWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Type: System.Double Default value is 50. |
SpaceLimitBetweenItems
Gets or sets the value that represents space limit between items when AllowedItemResizeMode set to Space value. This is dependency property.
Declaration
public double SpaceLimitBetweenItems { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Type: System.Double Default value is 0. |
Methods
ArrangeOverride(Size)
Arranges the content.
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | finalSize | Available size. |
Returns
Type | Description |
---|---|
System.Windows.Size | Size in which the content is arranged. |
GetItemLocation(DependencyObject)
Gets the value that represents item location point.
Declaration
public static Point GetItemLocation(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj | Object which location is needed. |
Returns
Type | Description |
---|---|
System.Windows.Point | Location point. |
GetItemTarget(DependencyObject)
Gets the value that represents item target location point.
Declaration
public static Point GetItemTarget(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj | Given item. |
Returns
Type | Description |
---|---|
System.Windows.Point | Item target location point. |
GetRunningAnimation(DependencyObject)
Gets the value that describes item running animation.
Declaration
public static WrapPanelExt.RunningAnimation GetRunningAnimation(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj | Given item. |
Returns
Type | Description |
---|---|
WrapPanelExt.RunningAnimation | Current running animation. |
See Also
GetVelocity(DependencyObject)
Gets the value that describes item animation velocity.
Declaration
public static Vector GetVelocity(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj | Given item. |
Returns
Type | Description |
---|---|
System.Windows.Vector | Velocity vector. |
MeasureOverride(Size)
Measures children in anticipation of arranging them during the ArrangeOverride pass.
Declaration
protected override Size MeasureOverride(Size constraint)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | constraint | Size given for panel. |
Returns
Type | Description |
---|---|
System.Windows.Size | Size which is needed for the panel. |
OnVisualChildrenChanged(DependencyObject, DependencyObject)
Invoked when the System.Windows.Media.VisualCollection of a visual object is modified.
Declaration
protected override void OnVisualChildrenChanged(DependencyObject visualAdded, DependencyObject visualRemoved)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | visualAdded | The System.Windows.Media.Visual that was added to the collection. |
System.Windows.DependencyObject | visualRemoved | The System.Windows.Media.Visual that was removed from the collection. |
SetItemLocation(DependencyObject, Point)
Sets the value that represents item location point.
Declaration
public static void SetItemLocation(DependencyObject obj, Point value)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj | Given item. |
System.Windows.Point | value | Value of new location. |
SetItemTarget(DependencyObject, Point)
Sets the value that represents item target location point.
Declaration
public static void SetItemTarget(DependencyObject obj, Point value)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj | Target item. |
System.Windows.Point | value | Target location point. |
SetRunningAnimation(DependencyObject, WrapPanelExt.RunningAnimation)
Sets the value that describes item running animation.
Declaration
public static void SetRunningAnimation(DependencyObject obj, WrapPanelExt.RunningAnimation value)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj | Given item. |
WrapPanelExt.RunningAnimation | value | Current running animation. |
See Also
SetVelocity(DependencyObject, Vector)
Sets the value that describes item animation velocity.
Declaration
public static void SetVelocity(DependencyObject obj, Vector value)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj | Given item. |
System.Windows.Vector | value | New velocity for given item. |