• Upgrade your Internet Experience
  • Sign in
  • Microsoft.com
  • United States (English)
    Brasil (Português)Česká republika (Čeština)Deutschland (Deutsch)España (Español)France (Français)Italia (Italiano)Россия (Русский)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語)香港特别行政區 (中文)
 
 
.NET Framework Developer Center
 
 
Home
 
 
Library
 
 
Learn
 
 
Downloads
 
 
Support
 
 
Community
 
 
Forums
 
 
 
.NET Framework Developer Center > .NET Development Forums > Windows Presentation Foundation (WPF) > XAML inheritance?
Ask a questionAsk a question
Search Forums:
  • Search Windows Presentation Foundation (WPF) Forum Search Windows Presentation Foundation (WPF) Forum
  • Search All .NET Development Forums Search All .NET Development Forums
  • Search All MSDN Forums Search All MSDN Forums
 

QuestionXAML inheritance?

  • Friday, November 24, 2006 3:38 AMDiamonDogX Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0
    I made a user control with several buttons on it (call them A,B,C), but wanted to make this control a so-called "base class" for other user controls that would extend such a class so that the derived controls would all have the same common set of buttons (A,B,C) but would have their own unique specializations (i.e. the usual use of inheritance).  I haven't had success implementing this relatively simple concept in XAML/C# with user controls... suggestions?  What is the correct way to do such a thing?
    • ReplyReply
    • QuoteQuote
     

All Replies

  • Tuesday, December 05, 2006 4:32 PMDiamonDogX Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0
    Is there any elegant way to inherit from another XAML/C# class and use its members?  For some reason, I assume there has to be a way to do this since you can do it in just about any language, but no one seems to have any answer to this type of thing.  Does some form of composition have to be used instead?  Thanks.
    • ReplyReply
    • QuoteQuote
     
Need Help with Forums? (FAQ)
 
© 2009 Microsoft Corporation. All rights reserved.
Terms of Use
|
Trademarks
|
Privacy Statement