I am new to silverlight. I am using navigation in my application. The main page contains the login page. After validating i have to navigate to the home page. The navigation works fine, but the mainpage is also showing in the form along with the home page.
ContentFrame.Navigate(new Uri("/Home.xaml", UriKind.Relative));
<Navigation:Frame Name="ContentFrame" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,55,12,12" BorderThickness="1" BorderBrush="Black" Grid.Column="1" Grid.ColumnSpan="3" Grid.RowSpan="5">
</Navigation:Frame>
Both the pages are overlapped and shown in the browser. Where i am wrong?
Without seeing all your code I can only guess, but it seems like maybe you’ve laid out your page like this:
Whereas you should have the login stuff inside the
Navigation:Frame, so that it gets “overwritten” whenHome.xamlis loaded: