How to Create a Fixed Footer In WinUI3?

147 views Asked by At

Gys I have been trying to create a fixed footer at the bottom of the page using WinUi-3. I dont know how to do it can anyone help me. Please give me a code example.

1

There are 1 answers

0
Andrew KeepCoding On BEST ANSWER

In your window you could:

<Window
...
>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Frame Grid.Row="0" x:Name="PageFrame" />
        <Grid Grid.Row="1">
            <!-- Your footer here. -->
        </Grid>
    </Grid>
</Window>

then set your pages as PageFrame's Content.