File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ GridExtra is a custom panel library for WPF/UWP.
10
10
* 12 columns across the page.(customizable with MaxDivision property)
11
11
* GridEx
12
12
* Helper class that defines usefull attached properties for Grid panel.
13
+ * WrapPanelEx
14
+ * Helper class that provide adaptive layout for WrapPanel.
13
15
14
16
## install
15
17
* Nuget Package*
@@ -337,5 +339,37 @@ Row devision is defined by line feed or `/`.
337
339
![ Example5_2] ( ./docs/GridEx/example5_2.png )
338
340
339
341
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
+
340
374
## Lisence
341
375
[ MIT] ( LICENSE )
You can’t perform that action at this time.
0 commit comments