Click or drag to resize

Extensions Class

Provides usefull extension methods
Provides usefull extension methods
Inheritance Hierarchy
SystemObject
  Cauldron.XAMLExtensions

Namespace:  Cauldron.XAML
Assembly:  Cauldron.Win32.WPF (in Cauldron.Win32.WPF.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static class Extensions

The Extensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAsBitmapImage
Draws the visuals of a FrameworkElement to a BitmapImage
Public methodStatic memberCloneT
Copies a BindingBase
Public methodStatic memberFindVisualChildByName
Searches for a specified visual element in the child tree by name
Public methodStatic memberFindVisualChildren(DependencyObject, Type)
Returns all visual childs and sub child (recursively) of the element that matches the given type
Public methodStatic memberFindVisualChildrenT(DependencyObject)
Returns all visual childs and sub child (recursively) of the element that matches the given type
Public methodStatic memberFindVisualChildrenT(DependencyObject, FuncFrameworkElement, Boolean)
Returns all visual childs and sub child (recursively) of the element that matches the predicate.
Public methodStatic memberFindVisualParent(DependencyObject, Type)
Returns the parent object of the specified object by processing the visual tree.
Public methodStatic memberFindVisualParentT(DependencyObject)
Returns the parent object of the specified object by processing the visual tree. The difference to FindVisualParent(DependencyObject, Type) is that this also consider sub-classes.

Public methodStatic memberFindVisualRootElement
Climbs up the visual tree and returns the top most visual parent
Public methodStatic memberGetDependencyProperties
Returns all DependendencyProperty fields in UWP and Desktop
Public methodStatic memberGetInheritanceContext
Returns the InheritanceContext of the current DependencyObject
Public methodStatic memberGetValue(Binding)
Get the value of the source of the given Binding.
Public methodStatic memberGetValue(BindingExpression)
Get the value of the source of the given BindingExpression.
Public methodStatic memberGetValueFromBindingOrProperty
Gets the value of the FrameworkElement's DependencyProperty. If the DependencyProperty is binded, then it will return the value of the binding source. If it is not binded, then it will return the value of the DependencyProperty.
Public methodStatic memberGetVisualChildren
Gets the direct visual children of the element
Public methodStatic memberGetVisualParent
Returns the parent object of the specified object by processing the visual tree.
Public methodStatic memberGetWindowHandle
Gets the window handle for a Windows Presentation Foundation (WPF) window
Public methodStatic memberRun
Handles neccessary setting of the IsLoading flag if implemented and the error handling
Public methodStatic memberRunAsync
Handles neccessary setting of the IsLoading flag and the error handling
Public methodStatic memberRunDispatcherAsync
Runs the action asyncronously using the Dispatcher on the lowest priority. Handles neccessary setting of the IsLoading flag and the error handling.
Public methodStatic memberSaveVisualAsPngAsync
Saves the visuals of a FrameworkElement to a png file
Public methodStatic memberSetBinding
Attaches a binding to a FrameworkElement, using the provided binding object.
Public methodStatic memberSetInlinedText
Set the inlined content of the TextBlock. This will clear the previous inline elements. If text is null then previous inline will also be cleared.
Public methodStatic memberToBitmapImageAsync(Byte)
Creates a new instance of BitmapImage and assigns the Byte array to its BitmapImage.StreamSource property
Public methodStatic memberToBitmapImageAsync(Stream)
Creates a new instance of BitmapImage and assigns the Stream to its BitmapImage.StreamSource property

Returns null if stream is null.

Public methodStatic memberTryClose
Tries to close a view associated with the view model
Top
See Also