In WPF I would like to create custom Inline
implementation. From documentation of Inline
: "An abstract class that provides a base for all inline flow content elements." Classes like Figure
, Run
or Span
inherit from Inline
.
My custom class inheriting from Inline
would be something like '2 lined Run'. I have special needs for flow of document and this seems to be the only way. However I don't know where to start: Inline
does not define any members! It is abstract class so it is meant to be inherited but there is no documentation on how to inherit from it. Not in MSDN and nowhere else where I could find it.
If you can provide some on-line resources (tutorial/blog/article) or code sample how to create subclass of Inline
. For example just empty box of some width and height.
If you want to know why I want to create custom Inline
element have a look on question Create guitar chords editor in WPF.