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
}
Subscribe to:
Post Comments (Atom)
Open default email app in .NET MAUI
Sample Code: if (Email.Default.IsComposeSupported) { string subject = "Hello!"; string body = "Excellent!"; ...
-
Label tb = new Label (); tb.Name = "LabelID" + iRow; tb.Content = lblName; Grid .SetColumn(tb, iCol); Grid .SetRow(tb,...
-
HttpClient is a .NET class that an app can use to send HTTP requests and receive HTTP responses from a REST web service. The resources that...
-
Grid is a layout panel that consists of rows and columns. Example 1: < Grid > < Grid.RowDefinitions > < Row...
No comments:
Post a Comment