Here is my desire to create something abstract in WPF. You have a main window (for example, the main one, even if it is not correct, we don’t care) with two buttons. These two buttons have the same function: they open a new window, the same for both of them, but with different things inside. So I decided to create an abstract class to edit them as follows:
public abstract (partial ?) class A : Window
{
public A()
{
InitializeComponent();
}
...
}
public partial class B : A
{
public B()
{
InitializeComponent();
}
...
}
public partial class C : A
{
public C()
{
InitializeComponent();
}
...
}
Debugging gives me something like: "error CS0263: Partial declarations of" namespace.B "should not indicate different base classes."
Removing the "partial" from class A gives: "error CS0260: There is no partial modifier when declaring type" namespace.A ", there is another partial declaration of this type."
, "partial" , - (, xaml cs one), , , . , B ?
(), Windows Forms, xaml , , . , , , xaml, , ": ". , ?
, WPF, , .
!