Monthly Archives: October 2012

Maintain ScrollViewer scroll position across page navigation/app reactivation

When navigating around your app, it could be really helpful to maintain scroll position on various ScrollViewer controls. This also applies when your app reactivates after being suspended and shut down. Doing it is a bit trickier than it looks … Continue reading

Posted in Dev, Windows8 | Tagged , , , , , , , | Leave a comment

But in DataContractSerializer–does not handle object-types well

In using SuspensionManager and the Session State on Windows 8, I tried saving an object into it and the app kept crashing on load.. Just spent four hours chasing my tail… Finally figured it out. Here it is if anyone … Continue reading

Posted in Dev, Windows8 | Tagged , , , , , | Leave a comment

ColdTask implementation for Windows 8

Tasks in Windows 8 are used all over the place – they are a really great way of getting things done asynchronously. Sometimes though, you find yourself wanting to change the way these tasks execute. Most .NET tasks are “hot” … Continue reading

Posted in Dev, Windows8 | Tagged , , , , , , | Leave a comment

Turn any UserControl into a pleasing Dialog/Flyout in Windows 8

Windows 8 comes with a somewhat extended Message box functionality – you can control the text on the message box and the content of the buttons. However, for Flyouts and arbitrary content, there’s no easy mechanism to use. WinRT does, … Continue reading

Posted in Dev, Windows8 | Tagged , , , , , , , , , | 15 Comments

What to do when getting reference errors with Microsoft advertising SDK

When compiling Windows Store apps that contain references to the Microsoft Advertising SDK, you may, every now and again, hit the following two errors: Error 13 The .winmd file ‘Microsoft.Advertising.WinRT.UI.winmd’ contains duplicate type names. Type ‘Microsoft.Advertising.WinRT.UI.XamlAdControl_XamlTypeInfo.XamlMetaDataProvider’ is already registered with … Continue reading

Posted in Dev, Windows8 | Tagged , , , , , | Leave a comment

Partial System.Windows.Interactivity for Windows 8 (WinRT)

If you are writing Windows Store Apps (as they are called now), and you’ve written Windows Phone/Silverlight/WPF apps before, you may be missing System.Windows.Interactivity which allows developers to attach behaviors and triggers (among other things) to UI elements in their … Continue reading

Posted in Dev, Windows8 | Tagged , , , , | Leave a comment

Alt key in WinRT’s (Win8) VirtualKey enum

Just a note, if somebody ends up searching for this… KeyEventArgs and the VirtualKey enumeration in Windows 8’s new APIs have the “Alt” key code in them – it’s just hiding behind the “Menu” name. This used to be documented … Continue reading

Posted in Dev, Windows8 | Tagged , , , , , , | Leave a comment