ExtensionMethods Members
Include Protected Members
Include Inherited Members
The ExtensionMethods type exposes the following members.
Methods
Name | Description | |
---|---|---|
AcquireWin32Focus | Puts the Win32 focus to the HWND of the HwndSource of the DependencyObject provided. If a new HWND other than currently focused one is focused then it returns true, setting the previousFocus parameter to the previously focused HWND and it returns false otherwise. | |
CopyTo | Add a simple copy method to Stream | |
FindAncestor<TAncestorType>(DependencyObject) | Helper method that finds the first ancestor of a given Type in the logical or visual tree. | |
FindAncestor<TAncestorType, TElementType>(TElementType, Func<T, TResult>) | ||
FindAncestorOrSelf<TAncestorType> | Helper method that finds the first ancestor of a given Type in the logical or visual tree, or the object itself if it matches in type. | |
FindCommonAncestor(DependencyObject, DependencyObject) | Finds the common ancestor of obj1 and obj2 using the GetVisualOrLogicalParent as the parent evaluation method. | |
FindCommonAncestor<T>(T, T, Func<T, TResult>) | ||
FindDescendant<T> | Helper method that finds the first descendant of a given Type in the visual tree. USE SPARINGLY. This method walks all the tree until a result is found. Use of this method on large trees or excessively will introduce a performance hit. | |
FindDescendants<T> | Find all visual descendants of this dependency object of a particular type. USE SPARINGLY. This method walks the entire tree. Use of this method on large trees or excessively will introduce a performance hit. | |
FindDescendantsReverse<T> | In reverse order: Find all visual descendants of this dependency object of a particular type. USE SPARINGLY. This method walks the entire tree. Use of this method on large trees or excessively will introduce a performance hit. | |
GetVisualOrLogicalParent | This uses the visual tree first, then diverts to the logical tree if the visual tree ends. This is necessary for the TabControl, where using either the logical tree or visual tree by themselves is insufficient. | |
IsAncestorOf<TElementType> | ||
IsConnectedToPresentationSource | Used to determine if a given DependencyObject is rooted in a PresentationSource. In order to determine screen coordinates from relative coordinates, this element has to be rooted in a PresentationSource. It can also tell us whether something is presently in the visual tree or not. | |
IsLogicalAncestorOf | Determines if an element is an ancestor of another element using both the logical and visual trees. | |
IsNearlyEqual | Helper method to determine if a double is the same type of non-real or nearly equal to another double. | |
IsNonreal | Helper method to check if a double is valid. | |
IsSignificantlyGreater | ||
IsTopmost | Determines if an HWND is a topmost window. | |
RaiseEvent(EventHandler, Object) | Helper method to perform the null check necessary to raise an event safely. | |
RaiseEvent(CancelEventHandler, Object, CancelEventArgs) | Helper method to perform the null check necessary to raise an event safely. | |
RaiseEvent(EventHandler, Object, EventArgs) | Helper method to perform the null check necessary to raise an event safely. | |
RaiseEvent<TEventArgs>(EventHandler<TEventArgs>, Object, TEventArgs) | Helper method to perform the null check necessary to raise an event safely. | |
ThrowIfNullOrEmpty | Add a throw from string to verify that it is not null or empty | |
ToPOINTL | Converts a given Point object to a POINTL. | |
TraverseVisualTree<T> | Execute a delegate action on all visual descendants of this dependency object of a particular type. USE SPARINGLY. This method walks the entire tree. Use of this method on large trees or excessively will introduce a performance hit. | |
TraverseVisualTreeReverse<T> |
Top