Search code examples
c#xamlfooterwinui-3windows-app-sdk

How to Create a Fixed Footer In WinUI3?


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.


Solution

  • 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.