[responsive-menu menu="HamburgerMenu"]

Detecting Continuum mode

One of the specific feature of W10M, unmatched by other mobile OS is Continuum. What is the Continuum? Basically, this is a feature of some Windows 10 Mobile phones (the Lumia 950 and 950XL, for instance) that turns the phone into a sort of mini PC. It is a way to add secondary screen via a dock (HD-500, for example, that also allows to add a mouse [...]

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

Create a panel to give all GridView items the maximum width/height

I found myself still recently facing a standard problem using a GridView (note: it is just as valid for the ListView). The items of the list contained a text which can be small or long, giving something like this: Great. By default, GridView takes the size of the first item as the size for all items. To work around this, I’ll create my own class [...]

Customize default theme for Universal App 8.1

  Very busy days, just a small trick this time. You can customize easily the default theme for Universal app. The theme ressource is not showing in Blend, but you can find it in the Windows Kit directory: Check for c:\Program Files (x86)\Windows Kits\8.1\Include\winrt\xaml\design\ . You will see two files : themeresources.xaml and Generic.xaml. [...]

Xamarin Forms behaviors

A new thing in Xamarin Forms 1.3 is the behaviors. The behaviors are a kind of super attached property. You can see it as a independent reusable functionality you can add to existing controls as you want. You don’t need to subclass the control, it is just like a piece you clip on the control.   As example, I’ll make a behavior that executes a command [...]

Changing app theme on the fly with RequestedTheme

  Windows 8.1 (and WP 8.1 XAML and Universal apps) have this new XAML markup : ThemeResource To make it short, it is like the StaticResource but with a little bit of dynamism. If you change the theme at runtime, the property will be updated. A theme is just a resource dictionary with a specific key (Valid key, for Universal Apps are “Light” and [...]

Events and MVVM commands in Metro

  One of the biggest limitations for the MVVM pattern in Metro development is the lack of behaviors. I was quickly stuck because I didn’t found a way, using the MVVM pattern, to launch commands from control events like I used to do using MVVM Light event to command behavior. I was sad to hear not only there are not behaviors in WinRT, but it will [...]