Microsoft Advertising Services Test Mode Sample for Windows 8

Microsoft offers a very simple way to show advertising in Windows Store apps. A starting point is adsinapps.microsoft.com. The Microsoft Advertising SDK for Windows 8 can be found here: msdn.microsoft.com/en-us/library/hh506371%28v=msads.10%29.aspx. The SDK docs lead you to a document, listing all the possible advertising test modes with their appropriate test values: …

Windows Store App .NET Framework Subset

I’ve learned it when I created Silverlight apps – so why am I so surprised when playing around with Windows Store apps? The .NET framework for Windows Store apps only ‘provides a subset of managed types‘. This subset officially is called ‘.NET for Windows Store apps’. For details, please refer …

Telerik RagGridView – Where Are My Cells Gone?

My latest application required a RadGridView having a dynamic number of columns. And therefor, the binding of the data an event handler needed to by managed during runtime as well. Not really in issue: handle the RowLoaded event, iterate over the cells of the row passed by the event arguments, …

Silverlight, Telerik GridView, Dynamically Created Loaded Handler & Performance

I like Silverlight, Telerik’s GridView control and the ability to create the columns of a grid dynamically. Recently, I had to build up a grid during runtime. The number of columns and the header text is unknown at design time (read it from the database), but nothing to worry about. …

Limitations of Private Accessors and Generic Methods (JIT Compiler Encountered an Internal Limitation)

Private accessors are really helpful for extensive unit testing. But they do have their limitations. I wrote a generic protected method having a declaration like this: protected ReturnType MyMethod<T>(OneClass, DateTime, DateTime, Func<OtherClass, T>, out List<T>); Calling this method via an accessor in my unit test, I ran into an exception …

Silverlight Printing and Inheritance of Language Settings

From what I learned, printing in Silverlight (4) is straight forward: Create a control and print it. I used this pattern in a Silverlight application I built. Because I had to implement some multipage- and list handling, I created user controls that I added into a stack panel of the …

Generic UserControl Base Class in Silverlight

Having generics in .NET is a great thing. I already loved template classes in C++, missed them in .NET 1.x, and was happy to get a (little bit restricted) kind of templates in .NET 2.0. Building a Silverlight application, I felt the need to create a generic UserControl base class. …

Silverlight’s DatePicker and Telerik’s RadWindow Dialog

In my current Silverlight project, I’m using the DatePicker control, which is part of the Silverlight SDK. In one scenario, the DatePicker with TwoWay binding is embedded into a User Control, which itself is embedded into another User Control. The format is “dd.MM.yyyy”. Entering e.g. 23.11.2011 works fine, means the …

Refresh A Silverlight Control That Is Using A Converter

One of the great things of Silverlight – from my point of view – is the introduction of converters to format the content if a control, e.g. a text box. Well, the idea itself isn’t new, but it is the first time I saw it built in a Microsoft UI …