Results 1 to 3 of 3

Thread: VS2015 WPF - window contents show for a second then everything disappears

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2012
    Posts
    136

    VS2015 WPF - window contents show for a second then everything disappears

    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!

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Dec 2012
    Posts
    136

    Re: VS2015 WPF - window contents show for a second then everything disappears

    Actually it looks like it was a glitch in that new project. I deleted it and started another and it displays properly.

  3. #3
    PowerPoster PlausiblyDamp's Avatar
    Join Date
    Dec 2016
    Location
    Pontypool, Wales
    Posts
    2,447

    Re: VS2015 WPF - window contents show for a second then everything disappears

    Quote Originally Posted by pmeloy View Post
    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.
    VS 2022 will generate x86 (32 bit) executables just fine - should work with a 32 bit Access provider.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width