Browsed by
Category: Uncategorized

XboxTools: GameControllerDetector + improved XboxKeyControl

XboxTools: GameControllerDetector + improved XboxKeyControl

I recently released GameControllerDetector (here), a tool allowing developers to detect automatically if a user uses a Xbox gamepad or a media remote on Xbox. I also released XboxKeyControl (v1 here and v2) some months ago, a control allowing developers to display the different keys available on a xbox gamepad or a media remote. Now that we have a way to detect the input device used by a user, we can improve XboxKeyControl to automatically change the glyph displayed when…

Read More Read More

How to detect the media remote on Xbox with UWP

How to detect the media remote on Xbox with UWP

If you write an application on Xbox One with UWP, you are forced to support 2 types of controllers: gamepad and media remote. Unfortunately, a lot of applications don’t fully support the second one with 2 common mistakes: – Some features aren’t accessible with the media remote cause using a button not available (for example, a feature only accessible if the user presses trigger R or Y) – UI isn’t updated to display buttons of the media remote. We will…

Read More Read More

Make Bindings compatible with Multi-Windows.

Make Bindings compatible with Multi-Windows.

When XAML/WinRT was created, applications were only fullscreen, then they became windowed, and recently, more and more applications become multi-windows (Dropbox for example). The main concern with multi-windows app is that it’s very easy to make them crash, due to a limitation of XAML. Why does it crash? Let’s imagine an application with 2 windows (A and B), each window contains a TextBlock element with the Text property binded (using standard or native binding) to the same reference: Artist.FullName. Now…

Read More Read More

How to fix Fiddler when it can’t set the proxy on Windows 10

How to fix Fiddler when it can’t set the proxy on Windows 10

Fiddler is one of my favorite tool, very useful for a developer, but unfortunately, it didn’t work on my new laptop and it was impossible to activate the capture “Failed to register Fiddler as the system proxy”. In order to check if the cause of the issue was Windows or Fiddler, I tried to change the proxy of Internet Explorer and same issue, no way to set the proxy. So if you have the same issue than me, here is…

Read More Read More

XboxKeyControl v2: add a secondary theme

XboxKeyControl v2: add a secondary theme

I’ve recently posted a control I created allowing developers to display Xbox keys on their XAML application. I received some interesting feedback from developers using it, in particular a developer requested me to provide a second theme for this control, using a dark background for buttons (similar to real Xbox gamepad keys) instead of colored backgrounds. Even if I prefer to use colored background (better readiness in my opinion), I get his point and understand why some developers would prefer…

Read More Read More

Can’t activate Windows 10 Developer Mode: solution

Can’t activate Windows 10 Developer Mode: solution

In order to deploy your UWP apps, you need to activate the developer mode in Windows 10 Settings, but what if your computer refuses to activate this mode? If this issue happens on your corporate computer, the odds are very high that the cause of your problem is Windows Update itself. Enterprises can manage themselves Windows updates with a local mirror, it’s what we call Windows Server Update Services (WSUS), instead of downloads updates from Microsoft servers, your corporate computer…

Read More Read More

A XAML control displaying Xbox gamepad keys

A XAML control displaying Xbox gamepad keys

When I started working on Dropbox’s Xbox application, I was very surprised that Microsoft didn’t provide a control to display the Xbox controller keys in your XAML UI. The D-pad navigation is rather limited, so it’s important to provide shortcuts to allow users to quickly access some features. For example, press the “Y” key to search in your application. To help the user to know which shortcuts are available, a best practice is to display a summary at the bottom-right…

Read More Read More

Be careful with Path.GetExtension() and Path.GetFileName()

Be careful with Path.GetExtension() and Path.GetFileName()

Path.GetExtension as well as Path.GetFileName are very useful, but you will have some issues if you don’t read the document. One important thing to know about them is that they are very restricted and related to NTFS file system. It’s safe to use with NTFS/FAT32 paths and not with URI, HFS+ (OsX) and almost all LINUX paths. Invalid characters are: quote (“), less than (<), greater than (>), pipe (|), backspace (\b), null (\0), tab (\t). So if your string…

Read More Read More

More analytic data for your UWP apps

More analytic data for your UWP apps

If you go on the developer.microsoft.com/dashboard, click on your app then on analytics, you’re able to see some stats about your downloads:   You can see stats for each OS, but what about if you want to see stats about type of devices: mobile, desktop, xbox, hololens? Stats by device type To have this kind of information, you can go on: https://developer.microsoft.com/dashboard/analytics/reports/overview then click on change filter Select your application and click on device type: You will be able to filter your…

Read More Read More

AdaptivePanel: a smarter way to restrict the size of your controls

AdaptivePanel: a smarter way to restrict the size of your controls

One of the big challenge when you write an UWP application is to adapt your UI to 5″ screens (phones) as well as to 84″ screens (Surface Hub). Let be honest: it’s not the easiest task, especially because the framework misses some controls made for your adaptive UI, for example MinWidth and MaxWidth (+ MinHeight/MaxHeight or course). In order to simplify this article, we will only focus on the horizontal plan (MinWidth, Width, MaxWidth and HorizontalAlignment), of course, all the content…

Read More Read More