Skip to content
Patrick Schimmel edited this page May 24, 2021 · 4 revisions

ES.Tools

Basic Tools (ES.Tools.Core)

Infrastructure

  • Services - Singleton class that globally manages service classes.
  • TempServiceReplacement - Utility class that temporarily replaces services, e.g. for unit testing.
  • Utilities - Useful tools and extensions.

MVVM

  • ActionCommand - ICommand implementation, updating automatically when the CanExecute changes.
  • NotifyObject - Basic abstract implementation of INotifyPropertyChanged.
  • ViewFactory - Singleton class that manages the dependency between ViewModel and View.
  • ViewModel - Basic abstract implementation of a ViewModel. Inherits from NotifyObject and implements IDisposable.
  • ViewModelExtensions - Helpful extension methods that can be use in the context of ViewModels.

Controls (ES.Tools)

Adorners

Behaviors

Controls

  • Accordion - Accordion control that contains headered items that can be collapsed and expanded.
  • AnimatedProgressBar - ProgressBar where the steps in between are animated.
  • AutoGrayableImage - Image control that automatically turns itself into a gray scale image when disabled.
  • CustomItemsControl - ItemsControl that uses a ContentControl as item container. This enables implicit ViewModel data templates.
  • Donut - Simple control that looks like a donut.
  • DonutSegment - Simple control that looks like a segment of a donut.
  • Gauge - Control that looks like a real gauge with indicator, warning and error areas.
  • Indicator - Control that looks like a pin.
  • Meter - Control that looks like a vertical or horizontal meter with an indicator.
  • OfficeSlider - Restyling of the WPF slider that it looks more similar to the slider in Office applications.
  • PieSegment - Simple control that looks like a segment of a pie.
  • ProgressCircle - A simple circular progress bar.
  • Switch - A switch button control.

Converters

  • BooleanToVisibilityConverter - Converts a boolean value to a System.Windows.Visibility.
  • ColorToStringConverter - Converts a WPF System.Windows.Media.Color to a string and back.
  • DateTimeToTimeSpanConverter - Converts a System.DateTime into a System.TimeSpan. This can be used for data binding when the model property has to be a System.DateTime.
  • TextTrimmingConverter - Converts a string into a string with a limited number of characters. If the text exceeds the number of characters "..." is added.

Effects

  • GrayscaleEffect - WPF Effect that turns the control into a monochrome colored control.

UI

  • DependencyPropertyWatcher - Watches a dependency property and casts an event when the value changes.
  • DispatcherWrapper - Wrapper that wraps a WPF dispatcher. In unit tests you can easily replace the default dispatcher by a mocked implementation for testing.
  • TreeHelper - Extension methods that help navigate the WPF visual tree and logical tree.elcome to the ES.Tools wiki!
Clone this wiki locally