Click or drag to resize

TomsToolbox.Wpf Namespace

Classes and functions for WPF applications.
Classes
  ClassDescription
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 classBehaviorCollection
A collection of Behavior objects.
Public classBindingErrorTracer
Helper class to detect binding errors during debugging.

All functionality is only active if a debugger is attached.

Public classCode exampleBindingRelay
A simple helper to relay the data context to objects that don't live in the visual tree.
Public classCanvasAnchor
Anchors for a canvas to specify two coordinates in one single operation specifying a Point.
Public classClipboardHelper
Helper methods to interchange data via clipboard.
Public classColumnDefinitionCollection
A collection of ColumnDefinition objects.
Public classDateTimeSource
Provides values for date and time suitable for bindings.
Public classDelegateCommand
A simple, straight forward delegate command implementation that does not make use of the command parameter. For usage see MVVM concepts.
Public classDelegateCommandT
A simple, straight forward delegate command implementation. For usage see MVVM concepts.
Public classDependencyObjectExtensions
Extensions methods to ease dealing with dependency objects.
Public classDialogCommands
Routed commands for dialog management.
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 classDoubleClickPanel
A panel that raises MouseDoubleClick events like the Control.
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 classGroupDescriptionCollection
A collection of GroupDescription objects.
Public classGroupStyleCollection
A collection of GroupStyle objects.
Public classImageExtensions
Extension for the Image class:
Public classInputBindingTemplate
A container to host the source InputBindingCollection. Must be a FrameworkElement to minimize binding errors.
Public classItemsControlExtensions
Extensions and helpers for the ItemsControl or derived classes.
Public classListCollectionViewListAdapterT
Adapter for a ListCollectionView that exposes the content as a read-only collection with an IList interface.
Public classMultiSelectorExtensions
Extensions for multi selectors like ListBox or DataGrid:
  • Support binding operations with SelectedItems property.
Public classNullCommand
A ICommand implementation that does nothing and can't be executed.
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 classPresentationFrameworkExtensions
Common extension methods for presentation framework objects.
Public classPropertyBindingT
Support binding to a property of an element when the target is not a DependencyObject
Public classPropertyBindingValueChangedEventArgsT
Event arguments for the ValueChanged event.
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 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 classResourceKeys
A static class providing the resource keys for the theme resources.
Public classRowDefinitionCollection
A collection of RowDefinition objects.
Public classSelectorExtensions
Extensions for the Selector
Public classStyleBindings
Extensions to support style binding of some read only collection properties.
Public classTableHelper
Helper methods to parse or create text representations of a table.
Public classTextBlockHelper
Attached property provider which adds the read-only attached property IsTextTrimmedProperty to the framework's TextBlock control. Can be used to e.g. show a dynamic tool tip with the full text, that shows up only if the text is really trimmed.
Public classCode exampleTextBoxVisibleWhiteSpaceDecorator
Makes white space in text boxes visible.
Public classTextValidationEventArgs
Event argument for text validation events.
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 classTriggerCollection
A collection of Trigger (TriggerBase) objects.
Public classVirtualizingDoubleClickPanel
A virtualizing panel that raises MouseDoubleClick events like the Control.
Public classVisualExtensions
Extension methods to ease usage of Visual object.
Public classWaitCursor
Helper class to ease automatic display of the wait cursor.
Public classWindowCommands
Routed commands for window management.
Structures
  StructureDescription
Public structureCoordinates
WGS-84 coordinates in degrees.
Enumerations
  EnumerationDescription
Public enumerationTextValidationAction
The action to be taken after text validation.
Public enumerationWhiteSpaces
Classifies white spaces in plain text.