WPF - How to access method declared in App.xaml.cs?

c#, wpf

Solution

((App)Application.Current).YourMethod ....

Problem

How can I access, using C#, a public instance method declared in App.xaml.cs?

Original source

Related problems