Version

Utilities Class Members

The following tables list the members exposed by Utilities.

Protected Constructors
 NameDescription
Protected ConstructorUtilities ConstructorFor internal use  
Public Fields
 NameDescription
Public Fieldstatic (Shared in Visual Basic)SnapElementToDevicePixelsPropertySnapElementToDevicePixels Attached Dependency Property  
Public Properties
 NameDescription
Public Propertystatic (Shared in Visual Basic)ScaleCursorWithDpiReturns or sets a boolean indicating if cursors loaded using LoadCursor(Type,String) will be scaled with the dpi.  
Public Propertystatic (Shared in Visual Basic)SystemDoubleClickSizeReturns the maximum distance the cursor is allowed to travel between mouse button downs to generate a double click message.  
Public Propertystatic (Shared in Visual Basic)SystemDoubleClickTimeReturns the maximum number of milliseconds allowed between mouse button downs to generate a double click message.  
Public Propertystatic (Shared in Visual Basic)SystemDragSizeReturns the maximum distance the cursor is allowed to traval while the mouse button is down before initiating a drag operation.  
Public Methods
 NameDescription
Public Methodstatic (Shared in Visual Basic)AllowsAsyncOperationsReturns a boolean indicating if the object may perform asynchronous operations.  
Public Methodstatic (Shared in Visual Basic)AnimateTranslateTransformAnimates a translate transform  
Public Methodstatic (Shared in Visual Basic)CalculateTotalMarginAndPaddingCalculates the total padding and margin values beetween a descendant element and its ancestor  
Public Methodstatic (Shared in Visual Basic)CanExecuteCommandReturns true if the command of the specified System.Windows.Input.ICommandSource can be executed.  
Public Methodstatic (Shared in Visual Basic)ConvertFromLogicalPixelsOverloaded. Converts the logical pixel representation into screen pixels.  
Public Methodstatic (Shared in Visual Basic)ConvertToLogicalPixelsOverloaded. Converts the specified pixel value into the logical pixel representation.  
Public Methodstatic (Shared in Visual Basic)CopyPropertyValuesOverloaded. Copies all of the property settings from one object to another  
Public Methodstatic (Shared in Visual Basic)Create2by2GridCreate grid with 2 columns and 2 rows  
Public Methodstatic (Shared in Visual Basic)CreateBindingObjectOverloaded. Create a Binding object  
Public Methodstatic (Shared in Visual Basic)CreateBindingObjectLikeAliasCreate a Binding object  
Public Methodstatic (Shared in Visual Basic)CreateResourceSetDictionaryHelper method for creating a resource dictionary containing the specified sources.  
Public Methodstatic (Shared in Visual Basic)CreateRoundedRectGeometryOverloaded. Helper routine to create a geometry that describes a rounded rectangle.  
Public Methodstatic (Shared in Visual Basic)DoubleIsZeroReturns true if the specified double value is zero or close to zero.  
Public Methodstatic (Shared in Visual Basic)EnableModelessKeyboardInteropThis method should be called if your application is a WindowsForms application that will display an Infragistics WPF control inside an ElementHost control.  
Public Methodstatic (Shared in Visual Basic)ExecuteCommandInvokes the command of the specified System.Windows.Input.ICommandSource.  
Public Methodstatic (Shared in Visual Basic)GetAncestorFromNameGet an ancestor parent based on its type.  
Public Methodstatic (Shared in Visual Basic)GetAncestorFromTypeOverloaded. Get an ancestor parent based on its type.  
Public Methodstatic (Shared in Visual Basic)GetAncestorPropertyValueReturns the value of a property that has a non-null setting  
Public Methodstatic (Shared in Visual Basic)GetDefaultValueGets the default value for the specified property for the specified object.  
Public Methodstatic (Shared in Visual Basic)GetDescendantFromNameGets a descendant FrameworkElement based on its name.  
Public Methodstatic (Shared in Visual Basic)GetDescendantFromTypeOverloaded. Get a descendant parent based on its type.  
Public Methodstatic (Shared in Visual Basic)GetFirstMnemonicCharOverloaded. Returns the first mnemonic character found in a string.  
Public Methodstatic (Shared in Visual Basic)GetItemsHostFromItemReturns the items host that contains the item inside an ItemsControl  
Public Methodstatic (Shared in Visual Basic)GetLanguageCultureInfoGets the CultureInfo associated with the Language of the specified element.  
Public Methodstatic (Shared in Visual Basic)GetLineCountReturns the number of lines in the specified string.  
Public Methodstatic (Shared in Visual Basic)GetNonNeutralCultureOverloaded. Returns a specific, i.e. non-neutral, culture that can be used to format strings.  
Public Methodstatic (Shared in Visual Basic)GetParentOverloaded. Returns the parent of a child element.  
Public Methodstatic (Shared in Visual Basic)GetPropertyValueFromStyleReturns a property value from a style  
Public Methodstatic (Shared in Visual Basic)GetPublicKeyTokenOverloaded. Returns the public key token of a type's assembly.  
Public Methodstatic (Shared in Visual Basic)GetSnapElementToDevicePixelsGets the SnapElementToDevicePixels property. This dependency property indicates how the element should be adjusted so that it renders along a device pixel boundary.  
Public Methodstatic (Shared in Visual Basic)GetTemplateChildOverloaded. Searches an element for an templated child of the specified type.  
Public Methodstatic (Shared in Visual Basic)GetWorkAreaOverloaded. Returns the work area of the monitor relative to the top/left of the passed in element  
Public Methodstatic (Shared in Visual Basic)HasLoadedAncestorOverloaded. Determines if any ancestor element is loaded.  
Public Methodstatic (Shared in Visual Basic)HasSamePublicKeyChecks if the test object is from an assembly that is signed with the same public key as this assembly  
Public Methodstatic (Shared in Visual Basic)IsDescendantOfOverloaded. Indicates if the specified ancestor is the visual parent of descendant even if the descendant is within a popup.  
Public Methodstatic (Shared in Visual Basic)IsNumericTypeDetermines if a given System.Type is a numeric type.  
Public Methodstatic (Shared in Visual Basic)LoadCursorLoads a cursor from the specified resource  
Public Methodstatic (Shared in Visual Basic)PointFromScreenSafeOverloaded. Translates a point in screen coordinates into coordinates relative to an element  
Public Methodstatic (Shared in Visual Basic)PointToScreenSafeOverloaded. Translates a point relative to an element into screen coordinates  
Public Methodstatic (Shared in Visual Basic)RectFromPointsHelper method for returning a normalized System.Windows.Rect based on two points.  
Public Methodstatic (Shared in Visual Basic)RefreshLocalizedResourcesUsed to reset cached resources that are based upon the current culture.  
Public Methodstatic (Shared in Visual Basic)RemoveAllRemoves all occurrences of itemToRemove from list.  
Public Methodstatic (Shared in Visual Basic)SetPropertyFromStyleExtracts a property value from a Style and sets it on a DependencyObject  
Public Methodstatic (Shared in Visual Basic)SetSnapElementToDevicePixelsSets the SnapElementToDevicePixels property. This dependency property indicates how the element should be adjusted so that it renders along a device pixel boundary.  
Public Methodstatic (Shared in Visual Basic)ShouldSerializeA helper method for figuring out whether a property needs to be serialized.  
Public Methodstatic (Shared in Visual Basic)ShowMessageBoxHelper method to display a messagebox using the Window of the specified element if available.  
Public Methodstatic (Shared in Visual Basic)SortMergeSorts the passed in array list based on the passed in comparer using a modified merge-sort algorithm.  
Public Methodstatic (Shared in Visual Basic)StringFromNonDefaultPropertiesCreates and returns a string with any non-default System.Windows.DependencyProperty values.  
Public Methodstatic (Shared in Visual Basic)StripMnemonicsStrips mnemonics from a string.  
Public Methodstatic (Shared in Visual Basic)TransformPointToAncestorCoordinatesTransforms a point to its ancestor's coordinates  
Public Methodstatic (Shared in Visual Basic)TransformPointToDescendantCoordinatesTransforms a point to its descendant's coordinates  
Public Methodstatic (Shared in Visual Basic)ValidateTargetTypeOfStyleVerifies that the TargetType of the style is either null or is set to the targetType, an ancestor type or a descendant type.  
See Also