Update to Bag-O-Tricks for RC1

As promised, I've updated the bag-o-tricks. Download now.


Hex had a few rough edges that I cleaned up. Thanks to fun with MultiDataTrigger, I removed the need for a special "HexButton". I also cleaned up a bunch of stuff that I must have wrote while drinking...or maybe I've just learned a lot in the last 9 months.

New stuff

BlockBar Control
This is a simple sample of building a control, based on FrameworkElement that uses OnRender. It still uses DependencyProperty, etc. There are cases where you just want to draw. This is one of them.

This was a fun one. Lots of stuff to cover here, but it's late. The most important point to take away: there are options beyond ItemsControl (and its subclasses) if you want to bind to lists. Graph handles binding to a collection of nodes (via the CenterObject), watches for changes, generates UI--all of the stuff that ItemsControl does, but in a way that allows fine-grain control of "container" creation/clean-up and doesn't use a Panel.

Talked about on Channel9. Posted on my blog. A little joke that turned into a big joke. Control + ControlTemplate + Trigger = power. Maybe too much power. (Please click softly.)

Comments (14)
  1. Heard this a lot recently – in the meantime, ease the pain with Kevin’s Bag-O-Tricks aka Kevin Moore’s…

  2. The Bag Glad to see people are downloading the RC1 rev of the bag-o-tricks. Thanks for the love. (Always…

  3. I tested the latest rev of the bag-o-tricks on Vista RC1 (which included the .NET Framework 3.0 RC1)…

  4. mgemmons says:

    Great WPF stuff! The graph demo is particularly compelling. Keep ’em coming!

  5. mgemmons says:

    I noticed that under the effectts demo, the text does not display any dropshadow or reflection.


  6. For 2 timer siden blev det annonceret at Vista er færdig og før det var det Office 2007. I mandags var

  7. Interesting that I put bookmarks here – but my browser bookmarks are so full of stuff I cant find anything

  8. 在 Windows Form 应用中,我们碰到需要展开一个TreeView 控件的所有树节点的时候很简单,微软已经替我们提供了ExpandAll 方法,我们只要简单的一行代码tv_QTree.ExpandAll

  9. 在 Windows Form 应用中,我们碰到需要展开一个TreeView 控件的所有树节点的时候很简单,微软已经替我们提供了ExpandAll 方法,我们只要简单的一行代码tv_QTree.ExpandAll

Comments are closed.

Skip to main content