ComboBox on a Flyout attached to an AppBarButton loses mouse input on 1607

Several developers have asked why a ComboBox on a Flyout attached to an AppBarButton ignores mouse clicks after upgrading their UWP apps to target build 14393 (Windows 10, version 1607 – also known as the Windows 10 Anniversary Update). The same Xaml worked fine unchanged when the app targeted build 10586 (Windows 10, version 1511). <tl;dr> Apps can…


You want to print how many pages? I don’t think we have the memory for that Dave.

Thinking about adding printer support to your Windows Store app? Do you want to use XAML for pagination and printing? Does you app enable users to print the next George R. R. Marten novel? If so XAML probably isn’t the right solution for you. Don’t despair, you can print to your heart’s content using Direct2D and DirectWrite….


Using a DataTriggerBehavior to change an ItemTemplate in a Windows Store App

Visual Studio 2013 comes with the Behaviors SDK that can be used when developing Windows 8.1 Store Applications.  One of the components of the SDK is a DataTriggerBehavior which allows you to specify a specific action when the data, a DataTriggerBehavior is bound to, changes.  For this blog I will illustrate how to use the…

0

Strategies for sharing code in XAML-based Universal apps

Universal apps are a great way to share code between your Windows and Windows Phone versions of your app. Most devs have figured out how to share modules which are exactly the same, but sharing modules which are only almost the same is a bit less obvious. The Shared project isn’t a normal, stand-alone project:…


A Primer on WebView.NavigateToLocalStreamUri

Scenario A forum post recently asked about navigating to a page that that contains images that are accessed using the ms-appdata:/// URL protocol.  His problem was that he’d placed images in his application’s local folder and wanted to use WebView.NavigateToString to show some dynamically-generated HTML content that referenced these images. However, when loading the content…

4

Constraining manipulations

Touch screens are cool. Being able to drag and manipulate pictures and objects on the screen is fun, and the Xaml manipulation system makes it easy to drag and zoom controls by touch. Touch down, zip your finger across the screen, and watch the control slide away. But what if we want to apply more…


Frame of reference: keeping the music playing across pages

A musical score is a great way to add zip to your app, but many people are stumped because the Xaml MediaElement will play music only when it’s in the visual tree. When the user navigates to a new page the music stops. This brings up the frequent question: How can I keep the music…


How to apply an “Opacity Mask” to an image by mixing XAML and Direct2D

If you are a XAML graphics dev you may be lamenting the fact that in Windows Store 8.x apps the “opacity mask” property is conspicuously missing from the XAML image based controls. This is an unfortunate omission because there really isn’t an easy way to facilitate the opacity mask functionality using XAML alone. Let’s take…


Accessibility Gotchas 2: High Contrast

The next accessibility gotcha that we see regularly is poor support for high contrast modes. The high level concepts are the same for Xaml and for HTML, but the specific methods to solve them and some of the low level issues are different. High contrast mode makes it easier for some low-vision users to read…


Accessibility Gotchas 1: Xaml ListView speaks in tongues

I keep having the same conversation with a blind colleague: It always starts out well: Rob! Did you hear that Contoso has published their app to the Windows Store? It should be great! I’ve really been looking forward to this one! But then goes down hill: But I can’t use it… it has the same…