Static Public Member Functions | List of all members
DependencyObjectExtensions Class Reference

Static Public Member Functions

static TValue GetValue< TValue > (this DependencyObject self, DependencyProperty dp)
 
static DependencyObject GetParent (this DependencyObject self)
 
static IEnumerable< DependencyObject > GetChildren (this DependencyObject self)
 
static int GetIndexOfChild (this DependencyObject self, DependencyObject child)
 
static IEnumerable< DependencyObject > GetOrderedChildren (this DependencyObject self)
 
static DependencyObject GetTopLevelElement (this DependencyObject self)
 
static Rect GetContentBounds (this FrameworkElement self)
 
static bool IntersectsWith (this FrameworkElement self, FrameworkElement other)
 
static bool IntersectsWith (this FrameworkElement self, Rect bounds)
 
static bool TryGetTopLevelWindow (this DependencyObject self, out Window window)
 
static IntPtr GetWindowHandle (this DependencyObject self)
 
static IEnumerable< DependencyObject > GetAncestors (this DependencyObject self, bool includeSelf=false)
 
static DependencyObject FindAncestor (this DependencyObject self, Func< DependencyObject, bool > condition)
 
static DependencyObject FindChild (this DependencyObject self, Func< DependencyObject, bool > condition)
 

Member Function Documentation

◆ GetValue< TValue >()

static TValue GetValue< TValue > ( this DependencyObject  self,
DependencyProperty  dp 
)
inlinestatic

◆ GetParent()

static DependencyObject GetParent ( this DependencyObject  self)
inlinestatic

◆ GetChildren()

static IEnumerable<DependencyObject> GetChildren ( this DependencyObject  self)
inlinestatic

◆ GetIndexOfChild()

static int GetIndexOfChild ( this DependencyObject  self,
DependencyObject  child 
)
inlinestatic

◆ GetOrderedChildren()

static IEnumerable<DependencyObject> GetOrderedChildren ( this DependencyObject  self)
inlinestatic

◆ GetTopLevelElement()

static DependencyObject GetTopLevelElement ( this DependencyObject  self)
inlinestatic

◆ GetContentBounds()

static Rect GetContentBounds ( this FrameworkElement  self)
inlinestatic

◆ IntersectsWith() [1/2]

static bool IntersectsWith ( this FrameworkElement  self,
FrameworkElement  other 
)
inlinestatic

◆ IntersectsWith() [2/2]

static bool IntersectsWith ( this FrameworkElement  self,
Rect  bounds 
)
inlinestatic

◆ TryGetTopLevelWindow()

static bool TryGetTopLevelWindow ( this DependencyObject  self,
out Window  window 
)
inlinestatic

◆ GetWindowHandle()

static IntPtr GetWindowHandle ( this DependencyObject  self)
inlinestatic

◆ GetAncestors()

static IEnumerable<DependencyObject> GetAncestors ( this DependencyObject  self,
bool  includeSelf = false 
)
inlinestatic

◆ FindAncestor()

static DependencyObject FindAncestor ( this DependencyObject  self,
Func< DependencyObject, bool >  condition 
)
inlinestatic

◆ FindChild()

static DependencyObject FindChild ( this DependencyObject  self,
Func< DependencyObject, bool >  condition 
)
inlinestatic

The documentation for this class was generated from the following file: