I created this wonderful userinterface using the new page components in WPF and it worked great. Until suddenly the content doesn't show up anymore on one page.
The page looks like this:
<Page x:Class="WeSchedule247.RegisterAccountPage"
xmlns="
http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="
http://schemas.microsoft.com/winfx/2006/xaml"
Title="WeSchedule247 - Register new account"
>
<Grid Margin="8,8,8,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100"/>
<ColumnDefinition Width="150"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="30"/>
<RowDefinition Height="25"/>
<RowDefinition Height="25"/>
<RowDefinition Height="25"/>
<RowDefinition Height="25"/>
<RowDefinition Height="25"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TextBlock FontFamily="Arial" FontSize="16" Grid.Row="0" Grid.Column="0"
Grid.ColumnSpan="2">Register new account</TextBlock>
<TextBlock Grid.Row="1" Grid.Column="0" Margin="2,2,2,2">
Username:
</TextBlock>
<TextBox x:Name="UsernameTextBox" Grid.Row="1" Grid.Column="1"
Margin="2,2,2,2"></TextBox>
<TextBlock Grid.Row="2" Grid.Column="0" Margin="2,2,2,2">
E-mailaddress:
</TextBlock>
<TextBox x:Name="EmailTextBox" Grid.Row="2" Grid.Column="1"
Margin="2,2,2,2"></TextBox>
<TextBlock Grid.Row="3" Grid.Column="0" Margin="2,2,2,2">
Password:
</TextBlock>
<PasswordBox x:Name="PasswordTextBox1" Grid.Row="3" Grid.Column="1"
Margin="2,2,2,2"></PasswordBox>
<TextBlock Grid.Row="4" Grid.Column="0" Margin="2,2,2,2">
Confirm password:
</TextBlock>
<PasswordBox x:Name="PasswordTextBox2" Grid.Row="4" Grid.Column="1"
Margin="2,2,2,2"></PasswordBox>
<Button x:Name="RegisterButton" Grid.Row="5" Grid.Column="0"
Margin="2,2,2,2">Register</Button>
</Grid>
</Page>
The page works in the designer, so you would think that it would work outside of the designer.
Getting to the page is done by the following call:
NavigationService.Navigate(
new RegisterAccountPage());
Anybody can shed some light on this one?