Monday, July 18, 2011

WPF- XBAP page unload event


Following code explain how to use page unload event in your XBAP pages.

--XAML

<Page x:Class="MyTestPage"

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

Title="MyTestPage" Unloaded="Page_Unloaded">



--Code Behind
private void Page_Unloaded(object sender, RoutedEventArgs e)
{

// Your code here


}

No comments:

Post a Comment

If you’re using Visual Studio to build your .NET MAUI app on a Mac, locating the IPA (iOS App Package) file can be a bit tricky

  If you’re using   Visual Studio   to build your   .NET MAUI   app on a   Mac , locating the   IPA (iOS App Package)   file can be a bit tr...