Add navigation failed to activationService

This commit is contained in:
javitosanchez 2017-03-22 15:32:45 +01:00
Родитель 8118e17cd4
Коммит e8aee43e3a
4 изменённых файлов: 15 добавлений и 3 удалений

Просмотреть файл

@ -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);
};
}
}