How can I access, using C#, a public instance method declared in App.xaml.cs?
It works, but I don't understand. If Application.Current == App, and they are the same type, how is this type-cast working? Thanks
                  Gustavo Cavalcanti
                   2009-10-22 18:58:01
                Application is System.Windows.Application where else  App is inside your project derived from Application, Application.Current is of type Application, not App.
                  Akash Kava
                   2009-10-22 19:08:09
                
                
                A: 
                
                
              Have you considered to create a separate class to hold your application wide methods (eg. AppState.cs)?
                  xamlgeek
                   2009-10-22 18:39:39
                
              This is a better approach, but I wanted to know how to see the stuff declared in App.xaml.cs. Thanks.
                  Gustavo Cavalcanti
                   2009-10-22 18:56:52