System.Windows Namespace


.NET Framework Class Library for Silverlight
StartupEventArgs Class

Contains the event data for the Startup event.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)
Syntax

Visual Basic (Declaration)
Public NotInheritable Class StartupEventArgs _
    Inherits EventArgs
Visual Basic (Usage)
Dim instance As StartupEventArgs
C#
public sealed class StartupEventArgs : EventArgs
Examples

The following example code demonstrates how to handle the Application..::.Startup event.

Visual Basic
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
C#
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.
        }
    }
}
Inheritance Hierarchy

System..::.Object
  System..::.EventArgs
    System.Windows..::.StartupEventArgs
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference

Other Resources

Tags :


Page view tracker