I'm not even sure that this is possible, but I just started developing WPF in several new projects and tried to wrap some common functions by creating a mini-framework. Just things like exception handling and thread control.
What I would like to do is replace this line ...
public partial class App : Application
from
public partial class App : MyFrameworkApplication
I have libraries and links installed, but I get an error message about the "partially" declared class of the App , presumably because it still refers to the old base class.
Any ideas? Thanks.
EDIT: @Jeff M: No, your solution did not work. I suspect MyFrameworkApplication actually in the library, and the namespace declaration z does not recognize the library namespace. I got a link to it in App.xaml.cs, but a suspicious search error:
Error 3 Undefined CLR namespace. The 'clr-namespace' URI refers to a namespace 'MyLibraryNamespace' that is not included in the assembly.
I can work around the problem by creating a proxy class in the local namespace and getting it from the library class ... but it's a little smelly.
inheritance wpf
acron
source share