Skip to content

Commit 23dd90e

Browse files
committed
Modify README
1 parent feeba5d commit 23dd90e

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ GridExtra is a custom panel library for WPF/UWP.
1010
* 12 columns across the page.(customizable with MaxDivision property)
1111
* GridEx
1212
* Helper class that defines usefull attached properties for Grid panel.
13+
* WrapPanelEx
14+
* Helper class that provide adaptive layout for WrapPanel.
1315

1416
## install
1517
*Nuget Package*
@@ -337,5 +339,37 @@ Row devision is defined by line feed or `/`.
337339
![Example5_2](./docs/GridEx/example5_2.png)
338340

339341

342+
343+
### WrapPanelEx **(WPF Only)**
344+
WrapPanelEx is Helper class that provide adaptive layout for WrapPanel.
345+
346+
![demo](./docs/WrapPanelEx/demo.gif)
347+
348+
#### Example1
349+
WrapPanelEx.AdaptiveLayout property makes WrapPanel into UWP Community Toolkit's AdaptiveGridView like layout.
350+
351+
```xml
352+
<Grid>
353+
<Grid.RowDefinitions>
354+
<RowDefinition />
355+
<RowDefinition Height="Auto"/>
356+
</Grid.RowDefinitions>
357+
<WrapPanel ItemWidth="200" ItemHeight="70"
358+
Orientation="Horizontal"
359+
ge:WrapPanelEx.AdaptiveLayout="{Binding IsChecked, ElementName=chkIsAdaptive}">
360+
<Button />
361+
<Button />
362+
<Button />
363+
<Button />
364+
<Button />
365+
<Button />
366+
<Button />
367+
</WrapPanel>
368+
<CheckBox x:Name="chkIsAdaptive"
369+
Grid.Row="1" Margin="5"
370+
Content="WrapPanelEx.AdaptiveLayout"/>
371+
</Grid>
372+
```
373+
340374
## Lisence
341375
[MIT](LICENSE)

docs/WrapPanelEx/demo.gif

462 KB
Loading

0 commit comments

Comments
 (0)