Extensions Methods |
The Extensions type exposes the following members.
Name | Description | |
---|---|---|
AsBitmapImage |
Draws the visuals of a FrameworkElement to a BitmapImage | |
CloneT |
Copies a BindingBase | |
FindVisualChildByName |
Searches for a specified visual element in the child tree by name
| |
FindVisualChildren(DependencyObject, Type) |
Returns all visual childs and sub child (recursively) of the element that matches the given type
| |
FindVisualChildrenT(DependencyObject) |
Returns all visual childs and sub child (recursively) of the element that matches the given type
| |
FindVisualChildrenT(DependencyObject, FuncFrameworkElement, Boolean) |
Returns all visual childs and sub child (recursively) of the element that matches the predicate.
| |
FindVisualParent(DependencyObject, Type) |
Returns the parent object of the specified object by processing the visual tree.
| |
FindVisualParentT(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.
| |
FindVisualRootElement |
Climbs up the visual tree and returns the top most visual parent
| |
GetDependencyProperties |
Returns all DependendencyProperty fields in UWP and Desktop
| |
GetInheritanceContext |
Returns the InheritanceContext of the current DependencyObject | |
GetValue(Binding) |
Get the value of the source of the given Binding.
| |
GetValue(BindingExpression) |
Get the value of the source of the given BindingExpression.
| |
GetValueFromBindingOrProperty |
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.
| |
GetVisualChildren |
Gets the direct visual children of the element
| |
GetVisualParent |
Returns the parent object of the specified object by processing the visual tree.
| |
GetWindowHandle |
Gets the window handle for a Windows Presentation Foundation (WPF) window
| |
Run |
Handles neccessary setting of the IsLoading flag if implemented and the error handling
| |
RunAsync |
Handles neccessary setting of the IsLoading flag and the error handling
| |
RunDispatcherAsync |
Runs the action asyncronously using the Dispatcher on the lowest priority.
Handles neccessary setting of the IsLoading flag and the error handling.
| |
SaveVisualAsPngAsync |
Saves the visuals of a FrameworkElement to a png file
| |
SetBinding |
Attaches a binding to a FrameworkElement, using the provided binding object.
| |
SetInlinedText |
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.
| |
ToBitmapImageAsync(Byte) |
Creates a new instance of BitmapImage and assigns the Byte array to its BitmapImage.StreamSource property
| |
ToBitmapImageAsync(Stream) |
Creates a new instance of BitmapImage and assigns the Stream to its BitmapImage.StreamSource property
Returns null if stream is null.
| |
TryClose |
Tries to close a view associated with the view model
|