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

MDM: Configuring WLANProfile with a specific Wi-Fi network type returns error 500 on Windows phone 8.1

I recently helped a customer configure a Wi-Fi profile through MDM. The issue that they were running into was that the <WLANProfile>…</WLANProfile> was working fine on some phones and not on others. The working and failing phones had the same version of the operating system so it was quite tricky to understand why the payload…


Why doesn’t the Windows 8.1 Bluetooth Rfcomm Chat Sample work?

I’ve seen support cases and forum posts asking this question:  "Why doesn’t the Windows 8.1 Bluetooth Rfcomm Chat sample work?"  I have an answer for you: there’s a bug in the sample.  To explain about the bug, let’s look at the sample code – specifically, Scenario1_ChatClient.xaml.cs in the BluetoothRfcommChat.Shared project: private async void ServiceList_Tapped(object sender,…

3

Capturing raw PCM audio on Windows Phone 8 and 8.1

There are a number of different audio capture and playback APIs on Windows Phone 8.x. Unfortunately If you want to get at the raw PCM data and process it in near real time your options are limited. While it is possible to capture raw PCM audio from managed code it is not recommended and likely…


Using WNS Toast localization in a Windows Phone Silverlight 8.1 application

If you are writing a Windows Phone Silverlight 8.1 application and using Windows Notification Service (WNS) you may have come across a little problem when trying to enable localization for your Toast messages: they don’t show up with the correct text.   What I found is that an application needs to have resources stored in…

0

Strategies for Handling Errors in your Windows Store Apps

Working in developer support at Microsoft we see a lot of cases in the forums and customers that call in which relate to errors and exceptions in their applications.   I think the most frustrating are the ones that cause an application to terminate and leaving the application in a bad state.   Then there is the…

1

Windows Phone 8.1: Cannot install Company apps

I was helping customers with deploying Company apps to Windows Phone 8.1 through MDM and here are some of the errors encountered while installing apps and resolutions to those issues.    Problem: We signed the company app(appx package) with SignTool and the user initiated dowload by clicking the link in company hub, but after download…

2

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:…


Windows 8.1 MDM: Demystifying the operation modes of MDMAgent.exe

The Windows 8.1 Enterprise Device Management Protocol document talks about the different contexts that MDMAgent.exe runs under the “OMA DM Mode” section on page 48. The three operation contexts are: Maintenance Apps Machine However, the document does not specify when/ how the different modes are triggered. The purpose of this blog is to provide some…


A Simple SemanticZoom

I’m Confused I’m a big fan of simplicity.  There are times that I look at sample code and cannot figure out what the developer was thinking when he wrote it – I’m sure many of you have felt the same way.  That’s how I felt about the official SemanticZoom sample – overly complicated, too much…

1