![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | Subsclassing System.Windows.Application Hi, I want to have a specific subclass of System.Windows.Application to use as the basis for many WPF applications, but cant find a way to make the generated (*.g.cs) code to emit the correct class and so I get compile errors (the partial class I code is different from the staandard generated System.Windows.Application) eg: public class MyApplication : Application public partial class App : MyApplication Am I missing something simple or is there no provision for this? TIA Radek |
My System Specs![]() |
| | #2 (permalink) |
| Guest | Re: Subsclassing System.Windows.Application Sorry, forgot to import the namespace. As long as you import the namespace of the derived class (and its NOT part of the current project), simply changing the XAML as follows does what I need.... <ns:MyApplication ..... xmlns:ns="clr-namespace:MyNamespace;assembly=myAssembly" //import namespace from separate project!!!! /> "Radek Cerny" <radek.cerny@nospam.c1s.com.au> wrote in message news:%23zJX6qPnHHA.4900@TK2MSFTNGP05.phx.gbl... > Hi, > > I want to have a specific subclass of System.Windows.Application to use as > the basis for many WPF applications, but cant find a way to make the > generated (*.g.cs) code to emit the correct class and so I get compile > errors (the partial class I code is different from the staandard generated > System.Windows.Application) > > eg: > public class MyApplication : Application > > public partial class App : MyApplication > > > Am I missing something simple or is there no provision for this? > > TIA > > Radek > |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| System / Application sounds not working | Mike from OZ | Vista General | 3 | 05-29-2008 08:52 PM |
| Detecting if an application is installed on a system | Greg Smith | .NET General | 5 | 05-06-2008 10:45 AM |
| disable file system virtualization for an application | Scott | Vista General | 4 | 03-14-2008 12:24 PM |
| Windows Application vs XAML Browser Application | Denis | Avalon | 0 | 04-20-2007 01:43 AM |
| Possible bug in System.Windows.Application: Windows property | Jason Dolinger | Avalon | 1 | 01-10-2006 03:54 PM |