I know how to implement it using Grid and StackPanel, can it done here without that?
Sure, just align it left and right with panel! For example:
Horizontal stretch
<RelativePanel>
<TextBox RelativePanel.AlignLeftWithPanel="True"
RelativePanel.AlignRightWithPanel="True" />
</RelativePanel>
If you want vertical stretch, do the similar thing, just align the top and bottom with panel:
Vertical stretch
<RelativePanel>
<TextBox RelativePanel.AlignTopWithPanel="True"
RelativePanel.AlignBottomWithPanel="True" />
</RelativePanel>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With