[]
        
(Showing Draft Content)

C1.WPF.Extensions

Extensions Class

Class that provides static extension methods for several other classes.

Inheritance
Extensions
Namespace: C1.WPF
Assembly: C1.WPF.4.6.2.dll
Syntax
public static class Extensions

Methods

Name Description
C1TransformToVisual(UIElement, UIElement)

Returns a transform object that can be used to transform coordinates from the UIElement to the specified object.

Contains(Rect, Rect)

Determines if the one rectangular region is entirely contained within another structure.

ContainsAny<T>(List<T>, params T[])

Determines whether the specified list contains any of the following values.

Deflate(ref Rect, Thickness)

Deflates a Rect structure by specified amount.

Distance(Point, Point)

Returns the distance between the two points

FindParent<T>(FrameworkElement)

Finds the first parent of a given type for a particular FrameworkElement

GetAbsoluteUri(string)

Returns the absolute Uri from a string that may represent relative or absolute Uri.

GetAllParents(FrameworkElement)

Returns all the parents in the visual tree

GetVisualStateGroup(FrameworkElement, string)

Gets the VisualStateGroup with the given name, looking up the visual tree

Inflate(ref Rect, double, double)

Enlarges a Rect structure by the specified amount.

Inflate(ref Rect, double, double, double, double)

Enlarges a Rect structure by the specified amount.

IntersectsWith(Rect, Rect)

Determines if this rectangle intersects with rect.

MakeRelative(Popup, FrameworkElement, Func<List<AnchorMatching>>)

Makes the popup relative to another FrameworkElement.

MakeRelative(Popup, FrameworkElement, Func<List<AnchorMatching>>, Func<Point>, Func<Point>)

Makes the popup relative to another FrameworkElement.

Multiply(Matrix, Matrix)

Multiplies the left matrix by the right matrix.

Multiply(Matrix, ref Matrix, out Matrix)

Multiplies the left matrix by the right matrix, returns the resulting matrix in the output parameter.

SetBinding<T>(FrameworkElement, DependencyProperty, T, Expression<Func<T, object>>)

Sets the binding if the dependency property has not been set previously and the style of the element don't set the property.

SetBinding<T>(FrameworkElement, DependencyProperty, T, Expression<Func<T, object>>, IValueConverter)

Sets the binding if the dependency property has not been set previously and the style of the element don't set the property.

Transform(Matrix, double, double)

Transforms a point by this matrix.