In WinForms we would reach out to the Dock property of TabControl and select 'Fill'. However we do not have Dock property in WPF controls.
Solution: We can use the alignment properties to achieve the same effect:
<TabControl HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
You will need to remove Height, Width and Margin properties of the control to make it fill.
You will need to remove Height, Width and Margin properties of the control to make it fill.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.