![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
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 | Having a window extend an abstract class Is this possible? I've developed an abstract .cs class which extends from Window. I'd now like to extend other window classes from my window (specified both in the .xaml and .xaml.cs files) and I get the following error: Error 10 Can't specify an element of type Lab49.ApplicationWindowManager.ManagedWindow. Only non-abstract types are allowed as elements. Line 2 Position 19. C:\Documents and Settings\jdolinger\My Documents\Visual Studio\Projects\WPF Demos\TradingDemo\TradingDemo\TestClass.xaml 2 19 TradingDemo A quick example would look something like this: // The abstract class (no .xaml for this) public abstract class MyAbstractWindow : Window { } // The .xaml file: <?Mapping XmlNamespace="http://local" ClrNamespace="MyNamespace" ?> <local:MyAbstractWindow x:Class=MyNamespace.ConcreteWindow> ... </local:MyAbstractWindow> // The concrete window class .xaml.cs file: public partial class ConcreteWindow : MyAbstractWindow { } When I remove the abstract keyword from the superclass, everything works fine. But this really should be an abstract class, I don't want people to be able to instantiate. Is this specifically prohibited for a reason? Thanks! Jason |
My System Specs![]() |
| | #2 (permalink) |
| Guest | Re: Having a window extend an abstract class Unfortunately this is an unsupported scenario in V1 Avalon. Please check in future versions of the platform. Thanks! |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Extend Volume | Derek Da Silva | Vista General | 11 | 07-02-2008 11:56 AM |
| Extend the system partition? | Hecatonchires | Vista installation & setup | 8 | 01-31-2008 06:18 PM |
| Extend option ghosted out - can't extend partition? HELP! | This is so annoying..... | Vista General | 2 | 05-28-2007 12:40 AM |
| Re: Style on Window class? | Anthony Arriola | Avalon | 0 | 04-06-2006 10:47 AM |