Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

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.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

Having a window extend an abstract class

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 01-31-2006   #1 (permalink)
Jason Dolinger
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 SpecsSystem Spec
Old 01-31-2006   #2 (permalink)
Eddie
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 SpecsSystem Spec
Closed Thread

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


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51