Files
docs-desktop/dotnet-desktop-guide/framework/wpf/app-development/how-to-stop-a-page-from-loading.md
T
Andy De George da363692ff Initial WPF content migrated (#17)
* Reset branch for WPF changes

* Convert BMP to PNG; fix link-out-of-scope err

* Add snippets for WPF... 6794 files!!!!

* Add missing snippets

* update file updated between migration

* Fix paths to include

* update breadcrumb and toc

* fix index links

* fix index links

* fix index links

* fix markdown
2020-09-04 09:46:28 -07:00

1.2 KiB

title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
title ms.date dev_langs helpviewer_keywords ms.assetid
How to: Stop a Page from Loading 03/30/2017
csharp
vb
pages [WPF], stopping from loading
methods [WPF], Stoploading
events [WPF], NavigationStopped
NavigationStopped properties [WPF]
stopping pages from loading [WPF]
loading [WPF], stopping
e2b695b0-517e-462c-8ccf-90cc8d6ba864

How to: Stop a Page from Loading

This example shows how to call the xref:System.Windows.Navigation.NavigationWindow.StopLoading%2A method to stop navigation to content before it has finished being downloaded.

Example

xref:System.Windows.Navigation.NavigationWindow.StopLoading%2A stops the download of the requested content, and causes the xref:System.Windows.Navigation.NavigationWindow.NavigationStopped event to be raised.

[!code-csharpHOWTONavigationSnippets#NavigateStopLoadingCODE] [!code-vbHOWTONavigationSnippets#NavigateStopLoadingCODE]