|
29 | 29 | <WrapPanel.Resources> |
30 | 30 | <Style TargetType="Rectangle"> |
31 | 31 | <Setter Property="Height" Value="40" /> |
32 | | - <Setter Property="Width" Value="40" /> |
33 | 32 | </Style> |
34 | 33 | </WrapPanel.Resources> |
35 | | - <Rectangle Fill="Red" /> |
36 | | - <Rectangle Fill="Blue" /> |
37 | | - <Rectangle Fill="Green" /> |
38 | | - <Rectangle Fill="Yellow" /> |
39 | | - <Rectangle Fill="Orange" /> |
40 | | - <Rectangle Fill="Purple" /> |
41 | | - <Rectangle Fill="Teal" /> |
42 | | - <Rectangle Fill="Salmon" /> |
43 | | - <Rectangle Fill="CornflowerBlue" /> |
44 | | - <Rectangle Fill="Crimson" /> |
45 | | - <Rectangle Fill="DodgerBlue" /> |
46 | | - <Rectangle Fill="ForestGreen" /> |
47 | | - <Rectangle Fill="Gold" /> |
48 | | - <Rectangle Fill="HotPink" /> |
49 | | - <Rectangle Fill="Indigo" /> |
50 | | - <Rectangle Fill="Khaki" /> |
51 | | - <Rectangle Fill="LimeGreen" /> |
52 | | - <Rectangle Fill="Maroon" /> |
53 | | - <Rectangle Fill="Navy" /> |
54 | | - <Rectangle Fill="Olive" /> |
55 | | - <Rectangle Fill="Plum" /> |
56 | | - <Rectangle Fill="RosyBrown" /> |
57 | | - <Rectangle Fill="SlateBlue" /> |
58 | | - <Rectangle Fill="Tomato" /> |
59 | | - <Rectangle Fill="Violet" /> |
| 34 | + <!-- Items have varying widths to highlight that WrapPanel sizes each child to its desired size, unlike GridView which uses uniform item sizes. --> |
| 35 | + <Rectangle Width="60" Fill="Red" /> |
| 36 | + <Rectangle Width="100" Fill="Blue" /> |
| 37 | + <Rectangle Width="40" Fill="Green" /> |
| 38 | + <Rectangle Width="80" Fill="Yellow" /> |
| 39 | + <Rectangle Width="120" Fill="Orange" /> |
| 40 | + <Rectangle Width="50" Fill="Purple" /> |
| 41 | + <Rectangle Width="90" Fill="Teal" /> |
| 42 | + <Rectangle Width="70" Fill="Salmon" /> |
| 43 | + <Rectangle Width="110" Fill="CornflowerBlue" /> |
| 44 | + <Rectangle Width="45" Fill="Crimson" /> |
| 45 | + <Rectangle Width="85" Fill="DodgerBlue" /> |
| 46 | + <Rectangle Width="65" Fill="ForestGreen" /> |
| 47 | + <Rectangle Width="100" Fill="Gold" /> |
| 48 | + <Rectangle Width="55" Fill="HotPink" /> |
| 49 | + <Rectangle Width="95" Fill="Indigo" /> |
| 50 | + <Rectangle Width="75" Fill="Khaki" /> |
| 51 | + <Rectangle Width="115" Fill="LimeGreen" /> |
| 52 | + <Rectangle Width="50" Fill="Maroon" /> |
| 53 | + <Rectangle Width="80" Fill="Navy" /> |
| 54 | + <Rectangle Width="60" Fill="Olive" /> |
| 55 | + <Rectangle Width="105" Fill="Plum" /> |
| 56 | + <Rectangle Width="70" Fill="RosyBrown" /> |
| 57 | + <Rectangle Width="90" Fill="SlateBlue" /> |
| 58 | + <Rectangle Width="55" Fill="Tomato" /> |
| 59 | + <Rectangle Width="85" Fill="Violet" /> |
60 | 60 | </WrapPanel> |
61 | 61 |
|
62 | 62 | <controls:ControlExample.Options> |
|
0 commit comments