A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
Hello,
what parameters I need for a horizontal line across the layout width. Thank you.
You can bind x2 to the width of itself like following code.
<Line Stroke="Red" X2="{Binding Width, Source={RelativeSource Self}}" HorizontalOptions="Fill" StrokeThickness="3" />
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.