July 2015
Intermediate to advanced
1300 pages
87h 27m
English
As for Windows Forms, WPF also provides an Application class that allows interacting with your application instance. The class exposes several methods and properties that allow the getting or assigning of settings available within My Project. First, you need to get the instance of the running application. You accomplish this by assigning the Application.Current property to a variable as follows:
Dim myApp As Application = CType(Application.Current, Application)
When you get the instance of the application, you can get or set required information. The following code shows how you can retrieve the startup Uri (which corresponds to the startup object referred to in a XAML file), the ...