UniformWrapPanel ClassDW.WPFToolkit Documentation
Enhances the WrapPanel by the feature that all items will have the same size.
Inheritance Hierarchy

SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.MediaVisual
        System.WindowsUIElement
          System.WindowsFrameworkElement
            System.Windows.ControlsPanel
              System.Windows.ControlsWrapPanel
                DW.WPFToolkit.ControlsUniformWrapPanel

Namespace: DW.WPFToolkit.Controls
Assembly: DW.WPFToolkit (in DW.WPFToolkit.dll) Version: 5.6.0.0
Syntax

C#
public class UniformWrapPanel : WrapPanel

The UniformWrapPanel type exposes the following members.

Constructors

  NameDescription
Public methodUniformWrapPanel
Initializes a new instance of the UniformWrapPanel class
Top
Methods

  NameDescription
Protected methodMeasureOverride
Lets each child calculating is needed size.
(Overrides WrapPanelMeasureOverride(Size).)
Top
Fields

  NameDescription
Public fieldStatic memberIsAutoUniformProperty
Identifies the IsAutoUniform dependency property.
Public fieldStatic memberMinItemHeightProperty
Identifies the MinItemHeight dependency property.
Public fieldStatic memberMinItemWidthProperty
Identifies the MinItemWidth dependency property.
Top
Properties

  NameDescription
Public propertyIsAutoUniform
Gets or sets a value that defines if the common height or width will be taken by the biggest child element.
Public propertyMinItemHeight
Gets or sets the minimum height of the items.
Public propertyMinItemWidth
Gets or sets the minimum width of the items.
Top
Examples

XAML
<ItemsControl ItemsSource="{Binding Images}">
    <ItemsControl.ItemsPanel>
        <ItemsPanelTemplate>
            <WPFToolkit:UniformWrapPanel />
        </ItemsPanelTemplate>
    </ItemsControl.ItemsPanel>
</ItemsControl>

<WPFToolkit:UniformWrapPanel Orientation="Horizontal" MinItemWidth="100">
    <Button Content="One" />
    <Button Content="Two" />
    <Button Content="Three" />
</WPFToolkit:UniformWrapPanel>
See Also

Reference