What value each of these classes add in WPF
I know 开发者_开发百科we have following hierarchy of classes in WPF.
Visual
UIElement
FrameWorkElement
Control
I am interested in finding out what value each of these classes add to make a final UI control for example a Textbox
. What is significance of each individual class
You can find all of this information within the MSDN documentation.
Significance of individual elements
Visual: Provides rendering support in WPF, which includes hit testing, coordinate transformation, and bounding box calculations.
UIElement: A base class for WPF core level implementations building on Windows Presentation Foundation (WPF) elements and basic presentation characteristics.
FrameworkElement: Provides a WPF framework-level set of properties, events, and methods for Windows Presentation Foundation (WPF) elements.
Control: Represents the base class for user interface (UI) elements that use a ControlTemplate to define their appearance.
TextBoxBase: An abstract base class that provides functionality for text editing controls.
TextBox: Represents a control that can be used to display or edit unformatted text.
Finding out what value each of these classes add to make a final UI control
If you take a look at the TextBox properties, you will see in the descriptions of properties that are provided by elements higher hierarchy text like this:
(Inherited from {Element Name})
Reviewing the properties of the TextBox control will allow you to determine how it is composed from the inheritance hierarchy through inheritance.
精彩评论