GreedyWrapPanel Class
Microsoft internal use only. This panel is very similar to a WrapPanel, but instead of wrapping when a boundary is reached, it wraps once it has enough space.
For Orientation=Vertical, this means that it will use as many columns as it can, given enough children and width.
For Orientation=Horizontal, it will use as many rows as it can, given enough children and height. You can also specify a maximum number of wrapping levels (columns for Vertical, rows for Horizontal) with MaxWrappingLevels.
For Vertical GreedyWrapPanels, all children elements must have the same width. For Horizontal, they must all have the same height. This was done to optimize for performance. Loosening this restriction greatly increases the level of complexity with measuring and arranging the elements
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
System.Windows.Media.Visual
System.Windows.UIElement
System.Windows.FrameworkElement
System.Windows.Controls.Panel
Microsoft.VisualStudio.PlatformUI.GreedyWrapPanel
| Name | Description | |
|---|---|---|
![]() | GreedyWrapPanel() | Initializes a new instance of GreedyWrapPanel. |
| Name | Description | |
|---|---|---|
![]() ![]() | ActualWrappingLevelsProperty | A read-only property that is the actual number of levels we are using, regardless of what MaxLevels is set to. For Orientation=Vertical, this corresponds to Columns, while for Orientation=Horizontal, this corresponds to Rows. |
![]() ![]() | MaxWrappingLevelsProperty | Gets or sets the maximum wrapping levels. |
![]() ![]() | OrientationProperty | The orientation property. |
| Name | Description | |
|---|---|---|
![]() ![]() | IAddChild.AddChild(Object) | (Inherited from Panel.) |
![]() ![]() | IAddChild.AddText(String) | (Inherited from Panel.) |
![]() ![]() | IQueryAmbient.IsAmbientPropertyAvailable(String) | (Inherited from FrameworkElement.) |
| Name | Description | |
|---|---|---|
![]() | AcquireWin32Focus(IntPtr) | Microsoft internal use only.(Defined by ExtensionMethods.) |
![]() | FindAncestor<TAncestorType>() | Overloaded. Finds the first ancestor of a given type in the logical or visual tree.(Defined by ExtensionMethods.) |
![]() | FindAncestorOrSelf<TAncestorType>() | Overloaded. Finds the first ancestor of a given type in the logical or visual tree, or the object itself if it matches in type.(Defined by ExtensionMethods.) |
![]() | FindCommonAncestor(DependencyObject) | Overloaded. Microsoft internal use only.(Defined by ExtensionMethods.) |
![]() | FindDescendant(Predicate<DependencyObject>) | Overloaded. Microsoft internal use only.(Defined by ExtensionMethods.) |
![]() | FindDescendant<T>() | Overloaded. Microsoft internal use only.(Defined by ExtensionMethods.) |
![]() | FindDescendantReverse<T>() | Microsoft internal use only.(Defined by ExtensionMethods.) |
![]() | FindDescendants<T>() | Microsoft internal use only.(Defined by ExtensionMethods.) |
![]() | FindDescendantsReverse<T>() | Microsoft internal use only.(Defined by ExtensionMethods.) |
![]() | GetDeviceActualSize() | Microsoft internal use only.(Defined by DpiHelper.) |
![]() | GetVisualOrLogicalParent() | Microsoft internal use only.(Defined by ExtensionMethods.) |
![]() | IsClipped() | Determines whether the element's text is clipped by a parent ScrollViewer (the element can still be scrolled to view the clipped text)(Defined by ExtensionMethods.) |
![]() | IsConnectedToPresentationSource() | Microsoft internal use only.(Defined by ExtensionMethods.) |
![]() | IsLogicalAncestorOf(DependencyObject) | Microsoft internal use only.(Defined by ExtensionMethods.) |
![]() | IsTrimmed() | Microsoft internal use only.(Defined by ExtensionMethods.) |
![]() | TraverseVisualTree<T>(Action<T>) | Microsoft internal use only.(Defined by ExtensionMethods.) |
![]() | TraverseVisualTreeReverse<T>(Action<T>) | Microsoft internal use only.(Defined by ExtensionMethods.) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.








