I can’t find any documentation on implementing a class that inherits System.Windows.Media.Brush – what would it need to provide to do the job?
My specific goal is a triangle gradient; I can handle the details of calculating the colors if I can just find out how to actually implement a new brush.
It seems like Brush and other drawing primitives are explicitly sealed or prevented from subclassing by adding internal abstract methods for performance reasons.
See this post from Microsoft.
It is a bit misleading given this line in MSDN:
It seems to imply that if they are giving notes to inheritors that it should be possible to inherit from Brush, but Brush has some internal abstract methods that can’t be overridden by a third-party class.