[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, [...]

Barcodes on MS Band

Yes, I know: Microsoft has (it seems) dropped the Band (sad!). But as the article was 95% ready, I didn’t want throw it 🙂 There is a way to display a bar code on the Band. To do this, simply add a control of type BarCode (Surprise!) in a layout. This layout accepts the barcode type 39 and Pdf417 The best way to show something is to make [...]

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 [...]

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 [...]