WPF Windows 7 Explorer Toolbar Control

February 12, 2010 by · 2 Comments
Filed under: Code Snippets 

Today I have been working on emulating the Windows 7 Explorer Toolbar in WPF.  I really like this control as it blends the older toolbar and menubar concepts into one which may support icons and dropdown menus.

WPF makes creating new controls quite easy.  I decided to base my controls off of System.Windows.Controls.Toolbar, and similarly each item in the Toolbar is based off of the Button control.

Here’s the XAML that I came up with

Creating a new WPF application and using this code for Window1.xaml, you should see this:

Note that while this control is visually similar to the Windows 7 Explorer Toolbar, it does not handle overflow, or collapse menu items like the Explorer one does. Perhaps an eventual update to this control will provide more advanced support.

This control does handle the IsMouseOver, IsMouseDown, and IsKeyboardFocused states.  Adding the menu glyph is a WPF Polygon.

Project Deferno

February 9, 2010 by · Leave a Comment
Filed under: Software 

Over the past year or so, a few friends and I had been toying with the idea of a better IRC client, something with an attractive UI, HTML rendered themes, flexible features and, above all, feels like a 21st century piece of software.  mIRC feels horribly dated, how much has really changed since it was run on Win95?

Project Deferno is live today, and available to anyone via ClickOnce deployment.  Functionality is very limited, but development is moving quickly.

Deferno is targeted at Windows 7 with Aero, features may be limited in other configurations.

Download Project Deferno.  [ClickOnce installer]

Support/Questions should be directed to irc://irc.freenode.net/#deferno