Browsed by
Author: rudyhuyn

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

Can’t download apps on Microsoft Store with error 0x80080204

Can’t download apps on Microsoft Store with error 0x80080204

TL;DR: Fall creator update SDK cause major issues if your application uses an background audio agent. There is nothing more frustrating than receive a lot of bad reviews, not because your app crashes or is buggy but because users are not able to update or download your app because of Microsoft… Here is my last (bad) experience with the Microsoft Store, but this time the culprit is… Visual Studio itself. During the last few days, I’ve received several messages (1-star…

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