Monthly Archives: September 2012

XamlReader and “XamlParseException occurred Message=Unknown parser error: Scanner 2147500037”

XamlReader is a great tool for loading arbitrary XAML in your application. There are a number of rules you need to follow though (not all XAML that would otherwise load into an app would load with it) – some of … Continue reading

Posted in Dev, WindowsPhone | 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

Weak Event implementation that works for any event type

(Download at the bottom) Edit: Thanks to Marcelo, in the comments, we found a pretty basic issue with the implementation. Since we were weak-referencing the delegate, it would go away too soon. We changed the code to hold a weak-reference … Continue reading

Posted in Uncategorized | 6 Comments

Windows Phone Resiliency – Downloads

In the last four posts, I discussed various ways of allowing you as the developer to control portions of your app and allowing you to fix or change portions of your app without having to submit the app to the marketplace. … Continue reading

Posted in Dev, Javascript, Resilient, WindowsPhone | Leave a comment

Windows Phone Resiliency – do more

In the last three posts in this series, I showed you how to write your apps in a way that will allow you to future proof them to an extent. There are a few tips & tricks I wanted to … Continue reading

Posted in Dev, Javascript, Resilient, WindowsPhone | Leave a comment

Windows Phone Change Resiliency – Javascript

In the previous post, I discussed how you can use XPath to solve a lot of resiliency issues with external dependencies. In this post, I will show how to use Javascript (through JINT) to write parts of your code in … Continue reading

Posted in Dev, Resilient, Uncategorized, WindowsPhone | Leave a comment

Windows Phone Change Resiliency – XPath

In the previous post, I laid out the reasoning behind making your application resilient to change. In this post, I will look at the easiest way to build resiliency into your application – by using XPath expressions. XPath was originally … Continue reading

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