UniversalHelpers 1.2.0

dotnet add package UniversalHelpers --version 1.2.0
NuGet\Install-Package UniversalHelpers -Version 1.2.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="UniversalHelpers" Version="1.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add UniversalHelpers --version 1.2.0
#r "nuget: UniversalHelpers, 1.2.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install UniversalHelpers as a Cake Addin
#addin nuget:?package=UniversalHelpers&version=1.2.0

// Install UniversalHelpers as a Cake Tool
#tool nuget:?package=UniversalHelpers&version=1.2.0

Universal Helpers Library is a helper library for Universal Windows Platform (UWP) projects.


Allows you to make a UIElement draggable, either by mouse or touch. It has options for

– allow the user to rotate, via multitouch

– allow the user to scale, via multitouch. User can select the maximum scale and the minimum scale.

– you can assign a container so that the draggable element can never leave the container’s bounds

– option whether the draggable element has inertia (i.e. will continue movement by decelerating when the user drags it and lets it go)


The TapStoryboardbehavior is useful for scenarios where we want to tap an element, start a storyboard and execute a method when the storyboard finishes running. It also has an option to specify whether the method is on the code-behind file or in the VM (i.e. in the DataContext of the page, for MVVM scenarios).


The FeedbackBehavior allows the user to implement a feedback functionality when an element is tapped and “pointer over”, specifically a scale animation on pointer over and an opacity change when tapped. This is used to notify the end user that she has indeed tapped the specified element.


This simple behavior makes all text on a TextBox selected when the user taps on the TextBox.

Validation Behaviors

I’ve included 4 behaviors useful for validating TextBoxes. Their usage is easy to grasp via their name. They are

– TextRequiredFieldbehavior

– TextNumericDoubleBehavior

– TextEmailBehavior

– TextNumericIntegerBehavior

– TextMinimumLengthBehavior

They just need a TextBlock to display the error message.

Storyboard helper methods

The BeginTranslationToElementsAsync method gets a List of Tuples containing FrameworkElement and double and animates a FrameworkElement towards the elements included in the list, in the respective time.

The BeginSpriteSheetStoryboard gets a BitmapImage and animates it like a spritesheet

Finally, I have included some extension methods for FrameworkElements, to animate via translation, rotation, skew and solid color animations.



The Expander control has a button to display or hide the content that it includes.



The CirclePanel allows its element to display in a circular manner.


The DiagonalPanel allows its elements to display in a diagonal manner.


The ScatterView control was firstly seen at the original Surface device (now called Pixelsense) and allows its items to scatter around the specified surface. Elements can be dragged, resized and rotated.

Product Versions
Universal Windows Platform netcore50
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.0 1,644 12/11/2015