Add navigation failed to activationService
This commit is contained in:
Родитель
8118e17cd4
Коммит
e8aee43e3a
|
@ -25,15 +25,15 @@
|
|||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<StackPanel Grid.Column="0" Orientation="Horizontal">
|
||||
<StackPanel Grid.Column="0">
|
||||
<TextBlock>
|
||||
<Hyperlink Command="{Binding NewProjectCommand}">
|
||||
<TextBlock Text="New Project..."/>
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
<TextBlock Margin="20,0,0,0">
|
||||
<TextBlock>
|
||||
<Hyperlink Command="{Binding TemplatesContentCommand}">
|
||||
<TextBlock Text="Handle Templates Content"/>
|
||||
<TextBlock Text="Templates versioning..."/>
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
|
|
|
@ -46,6 +46,10 @@ namespace uct.BlankProject.Services
|
|||
{
|
||||
// Create a Frame to act as the navigation context and navigate to the first page
|
||||
Window.Current.Content = _shell;
|
||||
NavigationService.Frame.NavigationFailed += (sender, e) =>
|
||||
{
|
||||
throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -46,6 +46,10 @@ namespace uct.SplitViewProject.Services
|
|||
{
|
||||
// Create a Frame to act as the navigation context and navigate to the first page
|
||||
Window.Current.Content = _shell;
|
||||
NavigationService.Frame.NavigationFailed += (sender, e) =>
|
||||
{
|
||||
throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -46,6 +46,10 @@ namespace uct.TabbedPivotProject.Services
|
|||
{
|
||||
// Create a Frame to act as the navigation context and navigate to the first page
|
||||
Window.Current.Content = _shell;
|
||||
NavigationService.Frame.NavigationFailed += (sender, e) =>
|
||||
{
|
||||
throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче