Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

17. Dependency Properties > More Classes

More Classes

Did you notice something odd about the DependencyProperty and PropertyMetadata classes? They descend directly from Object, not one of the WPF classes like FrameworkElement. I think of them as sitting outside the system in order to manipulate it. (I’m sure the architects of WPF would have a more elegant description.)

But the WPF classes you create will descend, more or less directly, from FrameworkElement, and one of the ancestors of FrameworkElement, the DependencyObject, provides some important functions for creating and working with dependency properties. In fact, DependencyObject, which as you can see sits quite high in the WPF class hierarchy, specifically encapsulates the functionality of objects that participate in the dependency property system.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint