Skip to content

A wrappanel supporting variable width/height items.

License

Notifications You must be signed in to change notification settings

bkardol/wrappanel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to the WrapPanel repository!

NuGet Downloads

Info

As the VariableSizedWrapGrid and ItemsWrapGrid both take either user defined sizes or take the size of the first child it isn't easy to display a collection of items with various sizes. The WrapPanel control is created to support these circumstances.

The repository contains two directories:

  • WrapPanel, containing the source of the WrapPanel itself;
  • WrapPanel.Example, containing an example application demonstrating the use of the WrapPanel.

Quick-Start

In your xaml page add the following namespace:

xmlns:wp="using:WrapPanel"

After, you can start using the WrapPanel:

<wp:WrapPanel ItemsSource="{x:Bind Blocks, Mode=OneWay}">
  <wp:WrapPanel.ItemTemplate>
    <DataTemplate x:DataType="local:Block">
      <Border Background="Black" Width="100" Height="100" Margin="10" />
    </DataTemplate>
  </wp:WrapPanel.ItemTemplate>
</wp:WrapPanel>

Below, a screenshot of the WrapPanel in action where all children are sorted by size.

wrappanel example

About

A wrappanel supporting variable width/height items.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages