質問する質問する
 

質問XAML inheritance?

  • 2006年11月24日 3:38DiamonDogX ユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダル
     
    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?

すべての返信

  • 2006年12月5日 16:32DiamonDogX ユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダル
     
    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.