In pure XAML, is it possible to get a Line to align to part of a Grid?
Posted
by Jeff Wilcox
on Stack Overflow
See other posts from Stack Overflow
or by Jeff Wilcox
Published on 2010-03-12T05:03:46Z
Indexed on
2010/03/12
5:07 UTC
Read the original article
Hit count: 250
Is it possible to create a Line in XAML (without any C# code behind) to align a line inside of a layout container such as a Grid?
I'd like to effectively have:
<Grid>
<Line StrokeThickness="1"
HorizontalAlignment="Stretch"
VerticalAlignment="Bottom"
Stroke="Red"/>
</Grid>
I need to use StrokeDashArray
and StrokeDashOffset
, otherwise I would just use a Border
control with the BorderThickness set to "0,0,0,1"
...
Thanks for any ideas!
© Stack Overflow or respective owner