Click or drag to resize

PresentationFrameworkExtensions Class

Common extension methods for presentation framework objects.
Inheritance Hierarchy
SystemObject
  TomsToolbox.WpfPresentationFrameworkExtensions

Namespace: TomsToolbox.Wpf
Assembly: TomsToolbox.Wpf (in TomsToolbox.Wpf.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public static class PresentationFrameworkExtensions

The PresentationFrameworkExtensions type exposes the following members.

Methods
 NameDescription
Public Extension MethodChangeTrackerT Tracks the changes of the specified property. Unlike the TrackT(T, DependencyProperty), it tracks events only while the frameworkElement is loaded, to avoid memory leaks because the event handlers are referenced by the global DependencyPropertyDescriptor.
Public Extension MethodGetCenter Gets the center point of the specified rectangle.
Public Extension MethodGetClientRect(FrameworkElement) Gets the client rectangle of the framework element.
Public Extension MethodGetClientRect(FrameworkElement, Visual) Gets the client rectangle of the framework element translated to another visual.
Public Extension MethodGetDesignUnitSize Gets the physical size of one design unit in pixels.
Public Extension MethodGetExtent(FrameworkElement) Gets the extent of the framework element.
Public Extension MethodGetExtent(FrameworkElement, FrameworkElement) Gets the extent of the framework element translated to another visual.
Public Extension MethodGetPhysicalPixelSize Gets the physical size of one pixel in design units.
Public Extension MethodMergeWith Merges the first transformation with the second.
Public Extension MethodProcessMessages(Dispatcher) Waits until all pending messages up to the Background priority are processed.
Public Extension MethodProcessMessages(Visual) Waits until all pending messages up to the Background priority are processed.
Public Extension MethodProcessMessages(Dispatcher, DispatcherPriority) Waits until all pending messages up to the specified priority are processed.
Public Extension MethodProcessMessages(Visual, DispatcherPriority) Waits until all pending messages up to the specified priority are processed.
Public Extension MethodTranslate(Point, UIElement, UIElement) Translates the coordinates of the specified point from the first visual to the second visual.
Public Extension MethodTranslate(Rect, Visual, Visual) Translates the coordinates of the specified rectangle from the first visual to the second visual.
Top
See Also