[]
General utilities.
public static class Util
Name | Description |
---|---|
BlackBrush | Gets a black brush. |
BlueBrush | Gets a blue brush. |
ErrorBrush | Gets the default error brush. |
OpaqueBrush | Gets an opaque brush. |
ThicknessEmpty | Gets an empty Thickness. |
TransparentBrush | Gets a transparent brush. |
WhiteBrush | Gets a white brush. |
Name | Description |
---|---|
CancelBindings(FrameworkElement) | Removes all bindings from an element and its children, effectively canceling any edits made using the element. |
CloneBinding(Binding) | Creates a clone of a given binding. |
ContainsFocus(FrameworkElement) | Gets a value that determines whether an element or any of its children contains the focus. |
CreatePolygon(Brush, params double[]) | Creates a polygon (used to create sort and tree glyphs). |
GetBindingExpression(FrameworkElement, out FrameworkElement, out DependencyProperty) | Returns the BindingExpression associated with an editor. |
GetChildrenOfType<T>(DependencyObject) | Gets an element's children of a given type. |
GetEquivalentCulture(XmlLanguage) | Gets a CultureInfo to match a given XmlLanguage. |
GetFirstChildOfType<T>(FrameworkElement) | Gets an element's first child of a given type. |
GetParentOfType<T>(DependencyObject) | Gets an element's first ancestor of a given type. |
GetPosition(RoutedEventArgs, UIElement) | Similar to e.GetPosition, but works in zoomed popups. |
GetValueFromBindings(FrameworkElement) | Returns the current value on a binding source so caller can update the target explicitly (because Silverlight doesn't have binding.UpdateTarget) |
IsPrimitive(Type) | Gets whether a type is a primitive type or a string. |
PositionPopup(Popup, FrameworkElement) | Position a popup below a FrameworkElement. |
SetBindingValidation(Binding, bool) | Turns validation on or off for a new given binding. |
SetFocus(Control) | Attempts to set the focus to a given control. |
UpdateBindingSource(FrameworkElement) | Updates the binding source for an editor cell (without waiting for it to lose focus). |