Monday, July 30, 2012

Bug in Blogger?

I just attempted to publish a blog post on how to apply common themes in WPF but if you are looking at it you'll find that it ends rather abruptly. I was pretty upset thinking that Blogger had lost my post. I just wanted to take a look at the HTML those instead of just the compose window text and my suspiciouns proved to be right. Everything had saved fine but since WPF uses markup to define its layouts, the markup I had pasted in as code happened to break the HTML as well. Bit of a fix I am in now so if anyone knows how to solve this issue let me know. 

Common Themes in WPF

An interesting issue that might present itself to any WPF developer is that there is no apparent way to set a common style for a particular control or even for a form as a whole. At least, the method is there but the properties to use seem well hidden and don't really present themselves till you get to advanced sections of a good WPF book. Having obtained the solutions to these problems I thought it was only fair that I post out on the internet what I found.

For applying themes to a common control such as a button,

A quick look at the code will show how akin this is to the practice of CSS. There are styles that have a name, a target, and the property which they affect of those target controls. From that point on there are styles which are based on (inherit) the previously declared attributes that can be more applied in a more granular fashion. While this is pretty good, it turns out that if you want to change the font sizes and colours for an entire form, the solution is far simpler than this. 

Yessir. That's all you need. I would suggest playing more with the TextElement properties to see what else can be changed. Essentially, by setting this value you set the style for all controls that follow inside that. There are other elements to play around with but this is it in a nutshell. 

Happy coding!

Tuesday, July 24, 2012


Lift is a simple, positive way to achieve any goal. A while back you signed up for access to our beta (or one of the current beta testers invited you). Today, we're inviting you and a handful of other people into our beta. Welcome!

This is an early version of an iPhone app that we plan to launch in August.

To participate, open the link below on your iPhone or iPad running iOS 5.0 or newer (sorry, we don't support other devices yet).

Well that just ruins everything

Check them out

Saturday, July 21, 2012

Free to write

For the last few months I’ve been programming most of the day but I haven’t unfortunately been free to write about all the discoveries I was making as well as techniques I was coming up with since I was working on a game for the company that was built on top of XNA and the controller happened to be the Kinect. The project was pretty hush hush. But it’s now out in the open. Expect a few more details soon.

On another note, yes this is one of those “I am back” blog posts, I’ll be trying to make a point to blog almost daily, at least every other day on the many discoveries I’ve been making while at work, and the occasional rant and muse on the state of tech today.

Look forward to it kitties