WinUX-ValidatingTextBox

Adding TextBox validation to your UWP application with WinUX

By | Universal Windows Platform | No Comments

There have been many occasions when I’ve been building apps that I’ve required the need for a form. This is normally a login screen which has some required fields that have specific client validation logic, usually a password length with certain character exceptions.

This is where WinUX’s ValidatingTextBox comes to help with it’s easy to use validation rule sets which can be easily extended for your own needs.

Read More

WinUX Toolkit

Croft Core UWP becomes WinUX Toolkit

By | Universal Windows Platform | No Comments

Last year in October, I announced a new project code-named Croft.Core.UWP, a library containing core, common functionality that most developers will look to use in their UWP applications from value converters to visual state triggers. Fast forward to February of this year where a decision was made to finally rename the project from Croft.Core.UWP to WinUX with a release of version 1.2. With the recent release of version 1.3, another decision was made to turn the WinUX project into separate components so your own projects weren’t dependent on a lot of functionality that you might not need in your project which will make it easier for you as a developer to pick and choose the parts you want to use.

In a series of blog posts over the next few weeks, I’ll cover what the WinUX toolkit contains and what it can do for your own UWP applications. I’ll split the posts down into the features available and continue to keep you posted as new features are added.

Read More

Hello World!

Storing a UWP InkCanvas drawing as an image in a StorageFile

By | Universal Windows Platform | No Comments

I’ve been tackling with an issue this morning to store the drawing on an InkCanvas as an image in a StorageFile. After hunting online for possible resolutions, I came across Mike Taulty’s blog post from a month ago which outlined a very similar issue.

For some of my older projects, I created an extension that uses RenderTargetBitmap to render a UI element out to an image in a StorageFile. Attempting to use this same method on the InkCanvas however has a different effect, one that wouldn’t work for my app (possibly wouldn’t be desired for any app). The issue is that when you call the RenderAsync method and pass through your InkCanvas or a parent element of the InkCanvas in your XAML, the end result is a blank saved image and your InkCanvas blanks itself too until you resize the app’s window, at which point, the drawing comes back.

Read More

uwp-migration

Gotchas in porting Windows 8.1 apps to the Universal Windows Platform

By | Universal Windows Platform | 2 Comments

As the Windows 10 OS has matured over the last year, businesses are looking to finally bring their applications over from Windows 8.1 to the new Universal Windows Platform and while the process is rather quick, there are a few gotchas that developers will need to look out for in the porting process. These have come from my own experience porting Windows 8.1 apps and things that have cropped up each time.

Read More