Posts Tagged ‘WPF’

Backgrounds with Style

February 7, 2009 4 comments

Many times we want to have some sort of textured background in our apps. Sometimes it’s to provide some interesting piece of information, such as the dead space in a canvas or a transparent layer. Other times it is to merely offer some aesthetics to our program, especially with regards to negative space. Regardless of our reasons, the process for doing so have been pretty much to create a background image, tile that, and possibly apply some type of colorization if our image didn’t already have that rendered in for us. However, with WPF there is another way.

Let’s take a look at two of the backgrounds we’ll be creating before we actually move into the implementation details.


A slight checkered pattern.


A thatch pattern.
Read more…

Categories: Programming, WPF Tags:

Menus with Style

February 7, 2009 Leave a comment

With all of the power that WPF provides, it’s easy to get lost in all of the details, especially when the tools that we have to create WPF programs with don’t always make things as easy as we’d like.

An interesting problem that I came across at work recently was a problem with menus and how to create a seamless transition from the menu item to the menu popup. Let me show you an example:


Read more…

Categories: WPF Tags: