Category Archives: Windows8

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

Using multiple styles on elements in XAML (Windows 8/WP7)

XAML styles are great for creating formatting and general properties setters that can be applied to elements in your UI easily. They are used massively in Windows Phone, Windows 8 and Silverlight as well as in WPF. (Note that some … Continue reading

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

VariableSizedWrapGrid inside an ItemsControl with ColumnSpan and RowSpan

Recently, I used an ItemsControl control to my XAML page and wanted to use a VariableSizedWrapGrid as the container. The idea was to show the first item in my collection as large (2×2 in the grid) and the rest of … Continue reading

Posted in Dev, Windows8 | Leave a comment