After using a bunch of different writing platforms, I’ve finally decided to move back to WordPress. While I’m not a fan of its bloated complexity, the ability to configure it the way I want without resorting to extensive re-writes is great. Case in point – the default themes in WordPress display the full content of […]
Using Constants in Razor Views
It is very easy when creating a website to fall into the trap of duplicating small bits of information throughout your site. It may seem expedient to hard-code something like your phone number or email in your views, especially initially when you may only reference it in one or two places. However, once you start […]
Adding Custom Namespaces to Razor Views
I’ve recently been working on a new web site using ASP.net MVC5, and I wanted to be able to reference my view models from my Razor views without having to fully qualify their namespace. Since I keep my view models in their own ViewModels namespace, all I needed to do was add that to the […]
Enabling Drag and Drop over a Grid in WPF
Recently I needed to enable drag and drop in a WPF application. The idea was to allow users to drop a file on the application window and the application would automatically open that file. Sounds simple, right? All it should take is to set the AllowDrop property to true on the Grid: <Grid HorizontalAlignment=”Stretch” DockPanel.Dock=”Top” […]
Where are all the Windows Phone 8 Apps?
I have a confession. After years of being an iPhone user, I recently switched to the Lumia 920. I love it. It happens to fit my phone usage pretty perfectly, so for me it was a no-brainer. The only downside has been the (well documented) lack of apps in the store. This hasn’t been too […]