Partager via


Update to Bag-O-Tricks for RC1

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

Updates

Hex
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.

Graph
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.
 

KevinButton
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

  • Anonymous
    September 20, 2006
    PingBack from http://blogs.msdn.com/okoboji/archive/2006/09/20/764019.aspx

  • Anonymous
    September 22, 2006
    PingBack from http://xamlxaml.com/2006/09/22/kevinbutton-source-now-available/

  • Anonymous
    September 25, 2006
    The comment has been removed

  • Anonymous
    September 26, 2006
    The comment has been removed

  • Anonymous
    September 26, 2006
    The comment has been removed

  • Anonymous
    September 27, 2006
    Great WPF stuff! The graph demo is particularly compelling. Keep 'em coming!

  • Anonymous
    September 27, 2006
    I noticed that under the effectts demo, the text does not display any dropshadow or reflection.

    -MGE

  • Anonymous
    November 08, 2006
    For 2 timer siden blev det annonceret at Vista er færdig og før det var det Office 2007. I mandags var

  • Anonymous
    December 11, 2006
    PingBack from http://www.orbifold.net/default/?p=549

  • Anonymous
    January 24, 2007
    The comment has been removed

  • Anonymous
    February 20, 2007
    PingBack from http://www.orbifold.net/default/?p=674

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

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

  • Anonymous
    November 30, 2008
    The comment has been removed