Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.51 KB

UniformSpacingPanel_Readme.md

File metadata and controls

52 lines (37 loc) · 1.51 KB

UniformSpacingPanel

The UniformSpacingPanel control is a extensions of the Panel control.

Example for UniformSpacingPanel usages

<!-- Example: Set the horizontal spacing to 15 and vertical spacing to 20. -->
<UniformSpacingPanel
   HorizontalSpacing="15"
   VerticalSpacing="20"
   Orientation="Horizontal">

   <!-- panel content -->

</UniformSpacingPanel>
<!-- Example: Set the horizontal and vertical spacing to 10. -->
<UniformSpacingPanel
   Spacing="10"
   Orientation="Horizontal">

   <!-- panel content -->

</UniformSpacingPanel>

The equvalent example with PanelHelper usages

<!-- Example: Set the horizontal spacing to 15 and vertical spacing to 20. -->
<WrapPanel
   atc:PanelHelper.HorizontalSpacing="15"
   atc:PanelHelper.VerticalSpacing="20"
   Orientation="Horizontal">

   <!-- panel content -->

</WrapPanel>

Properties

Property Type Description
HorizontalSpacing double Set the horizontal spacing between the panel's items
VerticalSpacing double Set the vertical spacing between the panel's items
Spacing double Set both the horizontal & vertical spacing between the panel's items
Orientation Orientation Set the orientation for rendering order