My(Surface)UserControlsが大量のコードを共有しています。ですから、この共通のコードと動作を定義できる抽象スーパークラスを定義したいと思います。(Surface)UserControlでポリモフィズムを使用していますか?
しかし(サーフェス)UserControlの抽象スーパークラスを定義するにはどうすればよいですか?私はコードビハインドSurfaceUserControlのファイルをサブクラス化しようとしたが、その後、私は次のエラーを取得する:
Partial declarations of 'Prototype_Concept_2.views.DependencyExpander' must not specify different base classes C:\Users\Roflcoptr\Documents\Visual Studio 2008\Projects\Prototype_Concept_2\Prototype_Concept_2\views\DependencyExpander.xaml.cs