I am trying to set properties of several different WPF RichTextBox controls, like List, ListItem, Paragraph. The properties I want to set are, for example, FontFamily and TextAlignment.
I want to do this as generic as possible, so I have one setter for TextAlignment, one setter for FontFamily, and so on, but I cannot find out the common superclass providing all these properties.
Can you tell me what superclass I am looking for, and, if possible, how to find out what superclass provides different properties in general?
Edit: More detailed explanation of the case:
FontFamily is inherited from TextElement, in both Paragraph and ListItem
TextAdjust is inherited from Block in apparently every class but ListItem
You can override metadata for a given UIElement.
For example, if you want to set the default FontSize of all FrameworkElements:
UIElement/FrameworkElement is as generic as it gets, if you want to apply those defaults to only a few types you need to repeat that line for every type you want.