You can try to design your xaml like below:
<Grid Width="{Binding RelativeSource={RelativeSource AncestorType=Window,Mode=FindAncestor},Path=ActualWidth}"
Height="{Binding RelativeSource={RelativeSource AncestorType=Window,Mode=FindAncestor},Path=ActualHeight}"
>
<Grid.RowDefinitions>
<RowDefinition Height="4*"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Canvas Background="Azure" Grid.Row="0">
</Canvas>
<Canvas Background="LightPink" Grid.Row="1">
<Button Width="50" Content="Exit" Canvas.Right="25" Canvas.Bottom="40" />
</Canvas>
</Grid>
The result picture is:
Did I misunderstand, if I did, please post your xaml code for me to analyze.
If the response is helpful, please click "Accept Answer" and upvote it.
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.