Browsed by
Author: rudyhuyn

How to display a toast notification without adding it to the action center

How to display a toast notification without adding it to the action center

One of the current restriction of UWP is that we don’t have a simple way to display toast notifications without adding them to the action center. It can make sense to keep visible some toasts during days there, for example: “Sabrina sent you a message”, is the kind of toast you don’t want to miss and still valid even after 2-3 days. But it doesn’t make sense to keep some toasts more than 20 seconds, for example “the password you…

Read More Read More

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

Visibility.Hidden for UWP XAML apps

Visibility.Hidden for UWP XAML apps

I recently read the feedback of a .Net developer wanting to migrate his/her WPF application to UWP. One of his/her concerns was that unlike WPF, the UIElement.Visibility property in UWP has only two values: Visibility and Collapsed, missing the third value offered by WPF: Hidden. What’s the difference between Hidden and Collapsed? Visibility.Hidden hides the control but keep the space it occupies in the layout. So it renders whitespace instead of the control. Visibilty.Collapsed doesn’t render the control and doesn’t…

Read More Read More

ToastNotifier::Setting: Careful with non-UWP applications!

ToastNotifier::Setting: Careful with non-UWP applications!

Some WinRT apis are available for classic win32 applications without using desktop-bridge, in our case today: ToastNotifications. Contrary to UWP/Desktop bridge apps, the behavior of these API are sometimes not really well documented (or not at all), it was my case very recently with the property ToastNotifier::Setting. If you are not familiar with this property, here is the documentation: Gets a value that tells you whether there is an app, user, or system block that prevents the display of a…

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

How to detect if your x86 application runs on Windows 10 on ARM?

How to detect if your x86 application runs on Windows 10 on ARM?

Windows 10 on ARM (in fact running on ARM64) will be released soon but no needs to worry, your x86 application has 99.9% of chance to run without problems on it if you don’t use drivers or advanced shell extensions. How to and why detect if your application is running on ARM64? For many reasons, it can interesting for a developer to know if the application runs on x86, x64 or ARM. Some example: – install the correct driver –…

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