XAML


Canvas inside a ScrollViewer

I came across an interesting problem at work recently when I had a canvas inside a ScrollViewer. I was developing a windows 8 application and I had a control that was essentially a canvas that handled drawing, and this was situated inside of a ScrollViewer. The control worked fine with the mouse, allowing me to […]

DataTemplateSelector in XAML – Versatile XAML Controls

At work this week I had a need for a versatile control that would display differently based on the contents of my ViewModel for a Windows Store app. The idea was I could have several slightly different objects, that combined would form a page that would display all the objects in the best format. My […]