[responsive-menu menu="HamburgerMenu"]

Dynamic ExpressionAnimation with Composition API

I talked about KeyFrame animations in a previous article. Composition API also has another type of animation: Expression animation. With this animation, we will not set keyframes, but a mathematical formula which will define our animation. For example “3 * x + 10”, where x is a parameter passed to the animation. We can use all the standard [...]

Spotlight animation with composition API

I’m having fun lately with Composition API. What is Composition API? These are APIs to manipulate the Visual Layer. It’s a graphic layer of lower level comparedto the Framework XAML. This allows optimized effects and animations The doc is good, you can see it here: I had [...]

Binding function with x:Bind

With the Windows 10 Anniversary update, there is a nice feature that has been added to the compiled binding (x: bind): there is a way bind to functions. Like this: Xaml: Code The function can also have parameters (parameters don’t need to be hardcoded, you can also pass another binding as parameter) XAML Code There is no check on the type [...]

Controlling Imaging SDK with Surface Dial

A few months ago, I had the chance to receive a Microsoft Surface Dial. I took the opportunity to make a small sample project. It took me very long time to finish it, sorry The idea I had is to control the Imaging SDK ( with the Dial. To add saturation and adjust the level, for example. Or then [...]

Cross platform unit tests with mock

Following my post on the framework SimpleStubs for UWP Unit tests, I’ll show how to do a cross platform unit test. The idea is not to test the PCL in a “neutral” way , but test it on the 3 platforms supported by Xamarin (Android, iOS and UWP). All by reusing the same code for the tests, of course. Creation of projects For iOS and [...]

Use SimpleStub as mocking framework for UWP unit testing

I looked lately for UWP mocking framework. You can’t say there are lot of choices. Mainly from the fact that there is no way to dynamically generate classes (as most of the framework mocking frameworks do). Therefore, you have to use another way. Like creating mock classes during the build phase. I stumbled upon an open source framework, SimpleStubs, [...]

How to detect if UWP app is running on Hololens

OK, I am gonna sound like Captain Obvious on this one ! You just have to check the DeviceFamily. If it is “Windows.Holographic” then you are on Hololens (The only holographic device out for the moment) Here is a state trigger : using Windows.System.Profile; using Windows.UI.Xaml; namespace DetectHololens { public class HololensStateTrigger [...]

Dynamically change the language of a universal app

When writing a multi-language application, it is always nice to offer the user the choice of the language used. It’s even more fun when this is done on the fly, without having to restart the application, let’s see how. Change the language Not too complicated. Let’s just change the language of the application through the property PrimaryLanguageOverride [...]

Clipping XAML controls

For an application (RPG Dice) I had to make an animation where a text is “disapearing” when moving below a line. Like this : The problem is most of the control don’t clip their content. So, if we animate it, we got something like this : How do we clip, then? Well the solution is simple. FrameworkElement has a Clip property. It is a rectangle, [...]

Using DeviceFamily to create device adaptive layouts

An UWP application can run on a huge range of devices. And screens. From a small screen of a few centimeters to the Surface Hub over-the-top-screen. Of course, Microsoft provided to us, modest developers some tools on WinRT for adaptive design. The StateTrigger (which will be the subject of an article soon), comes to mind. But sometimes, for one reason [...]