Contains the event data for the Startup event.
Namespace:
System.Windows
Assembly:
System.Windows (in System.Windows.dll)
Visual Basic (Declaration)
Public NotInheritable Class StartupEventArgs _
Inherits EventArgs
Dim instance As StartupEventArgs
public sealed class StartupEventArgs : EventArgs
The following example code demonstrates how to handle the Application..::.Startup event.
Partial Public Class App
Inherits Application
public Sub New()
InitializeComponent()
End Sub
Private Sub Application_Startup(ByVal o As Object, _
ByVal e As StartupEventArgs) Handles Me.Startup
' Detect when the application starts up.
End Sub
End Class
using System.Windows; // Application, StartupEventArgs
namespace SilverlightApplication
{
public partial class App : Application
{
public App()
{
this.Startup += this.Application_Startup;
InitializeComponent();
}
private void Application_Startup(object sender, StartupEventArgs e)
{
// Detect when the application starts up.
}
}
}
System..::.Object
System..::.EventArgs
System.Windows..::.StartupEventArgs
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Reference
Other Resources