Click or drag to resize

TomsToolbox.Desktop Namespace

Classes and functions that use functionality avaiable in desktop environments using .Net 4.0 client profile. This assembly has e.g. a reference to WindwosBase.
Classes
  ClassDescription
Public classAppDomainHelper
A helper to ease dealing with AppDomain specific tasks.
Public classBackgroundThreadWithDispatcher
A dedicated thread hosting an active dispatcher. The thread will be created as background thread, so it does not need to be shut down explicitly.
Public classBinaryOperationProcessor
Applies the Operation on the values.

Public classClipboardHelper
Helper methods to interchange data via clipboard.
Public classCultureInfoExtensions
Extension methods for the CultureInfo class.
Public classCustomAttributeProviderExtensions
Various extension methods.
Public classDependencyObjectExtensions
Extension methods for the DependencyObject.
Public classDispatcherExtensions
Extension methods to ease usage of dispatcher calls.
Public classDispatcherThrottle
Implements a simple throttle that uses the dispatcher to delay the target action.

Calling Tick multiple times will result in on single call to the action as soon as the dispatcher of the thread that created the throttle is dispatching calls of the specified priority.

Public classForegroundThreadWithDispatcher
A dedicated thread hosting an active dispatcher. The thread will be created as foreground thread, so this object must be explicitly disposed before the application can shut down.
Public classHGlobal
Wrapper for a global memory handle. The memory will be allocated using AllocHGlobal(Int32); the memory will be freed when the object is disposed.
Public classHighResolutionTimer
A high resolution timer that runs in a single thread. Timer events are triggered with high resolution, but new events will not be triggered unless the previous event is processed.
Public classLegacyV2RuntimeActivationPolicy
Configure the LegacyV2RuntimeActivationPolicy from code. See https://msdn.microsoft.com/de-de/library/bbx34a2h.aspx for documentation.
Public classObservableObject
Like ObservableObjectBase, with an additional dispatcher field to track the owning thread. This version is not serializable, since Dispatcher is not.
Public classObservableObjectBase
Base class implementing INotifyPropertyChanged.

Supports declarative dependencies specified by the PropertyDependencyAttribute and relaying events of other objects using the RelayedEventAttribute.

Public classCode examplePropertyDependencyAttribute
Attribute to mark one property as dependent on another property. If you call OnPropertyChanged(String) for one property, the property change event will also be raised for all dependent properties.
Public classReflectionExtensions
Methods to ease reflection
Public classCode exampleRelayedEventAttribute
Attribute to mark one property to relay the property changed events of another property from the governing class. If you call OnPropertyChanged(String) for a property of the governing class, the property change event will also be raised for the relayed property.
Public classSafeNativeMemory
Represents a wrapper class for a buffer allocated with AllocHGlobal(Int32)
Public classSafeNativeMemoryT
Represents a wrapper class for a buffer allocated with AllocHGlobal(Int32) and the size of T.
Public classSafeTokenHandle
Represents a wrapper class for a token handle.
Public classTextAttribute
Specifies a general usable attribute to associate text with an object, similar to DisplayNameAttribute or DescriptionAttribute, but without a predefined usage scope.
Public classThreadWithDispatcher
A dedicated thread hosting an active dispatcher.

Creates a thread and starts a dispatcher in this thread. The dispatcher is only accessible after it's fully started.

Public classThrottle
Implements a simple timed throttle.

Calling Tick multiple times will restart the timer; there will be one single call to the action when the delay time has elapsed after the last tick.

Public classUserAccountControl
Helper Functions for Privileges and Elevation Status
Public classCode exampleValidationTemplate
A validation template for using Validar.Fody (https://github.com/Fody/Validar) with data annotations (System.ComponentModel.DataAnnotations).

Public classWebHelper
Helper for web methods.
Public classXmlExtensions
Extension methods for System.Xml.Linq objects.
Structures
  StructureDescription
Public structureCoordinates
WGS-84 coordinates in degrees.
Enumerations
  EnumerationDescription
Public enumerationBinaryOperation
Binary operations supported by the BinaryOperationProcessor