Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.93 KB

File metadata and controls

49 lines (33 loc) · 1.93 KB
title author description keywords
AlignmentGrid XAML Control
nmetulev
The AlignmentGrid Control can be used to display a grid to help aligning controls.
windows 10, uwp, windows community toolkit, uwp community toolkit, uwp toolkit, AlignmentGrid, XAML Control, xaml

AlignmentGrid XAML Control

The AlignmentGrid Control can be used to display a grid to help with aligning controls.

You can control the grid's steps with HorizontalStep and VerticalStep properties. Line color can be defined with LineBrush property.

[!div class="nextstepaction"] Try it in the sample app

Syntax

<developerTools:AlignmentGrid Opacity="1" LineBrush="Black"
                    HorizontalStep="20" VerticalStep="20"/>

Sample Output

AlignmentGrid image

Properties

Property Type Description
HorizontalStep double Gets or sets the step to use horizontally
LineBrush Brush Gets or sets line Brush
VerticalStep double Gets or sets the step to use vertically

Sample Project

AlignmentGrid Sample Page Source. You can see this in action in the Windows Community Toolkit Sample App.

Requirements

Device family Universal, 10.0.16299.0 or higher
Namespace Microsoft.Toolkit.Uwp.DeveloperTools
NuGet package Microsoft.Toolkit.Uwp.DeveloperTools

API