I was working with VS2022 but it turned out that I can't use an Access 2003 database because it needs a 32bit provider which 2022 doesn't do.

So I started copying all the XAML into a VS2015 project and it seemed fine but then I ran the first page and the contents only show for 1/4 second then it all disappears but I simply can't see anything to cause that. Here is the XAML, Maybe one of you can spot something that I Can't. PS there is no codebehind (only copied the XAML so far)

Code:
<Window x:Class="Login"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfApplication2"
        mc:Ignorable="d"
        Title="Login" WindowState="Maximized">
    <Grid ShowGridLines="True">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="2*"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"></ColumnDefinition>
            <ColumnDefinition Width="2*"></ColumnDefinition>
            <ColumnDefinition Width="*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Row="1" Grid.Column="1">
            <TextBox Name="tbxUsername"></TextBox>
            <TextBox Name="tbxPasswd"></TextBox>
            <Button Name="btnLogin">Login</Button>
            <Button Name="btnExit">Exit</Button>
        </StackPanel>
    </Grid>
</Window>
Thanks for looking!