Hi Team,
I have read in the wpf architecture post, stating that "Most objects in WPF derive from DispatcherObject"
It is most of the objects, means not all objects , so which/what kind of objects will not use the DispatcherObject.
Thanks
Amit Singh
Hi Team,
I have read in the wpf architecture post, stating that "Most objects in WPF derive from DispatcherObject"
It is most of the objects, means not all objects , so which/what kind of objects will not use the DispatcherObject.
Thanks
Amit Singh
You could find objects that do not inherit from DispatcherObject here. Such as DispatcherEventArgs, DispatcherExtensions, Dispatcher, etc.
Update:
The following figure shows some of the main classes in the framework of the WPF class hierarchy (not all classes are included), which is helpful for a comprehensive understanding of the class hierarchy. The Brushes class in PresentationCore does not use DispatcherObject. It Implements a set of predefined SolidColorBrush objects.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Thanks for the reply,
Well I get that, but System.Windows.Threading is related to c#, what I meant is, all wpf elements as we know Window, button or textbox inherits from DispatcherObject, so what the author meant by the document "Most objects in WPF derive from DispatcherObject" is System.Windows.Threading is also wpf object ?
So if we about wpf architecture only, is there anything available in Presentation Framework , Presentation Core that doesn't use the DispatcherObject?
Thanks
Hi,@SINGHAmit-1801.I updated my answer, you can check the update in the answer.
It is most of the objects, means not all objects , so which/what kind of objects will not use the DispatcherObject.
You can see the Hierarchy, from WPF Dispatcher - Introduction and How to use? :
or from "Windows Presentation Foundation Unleashed" :

6 people are following this question.