Selasa, 01 Maret 2011

AttachedBehavior pattern sample

The ClickBehavior is about the simplest I can think of.  For illustration purposes I only included one command, but LeftClickCommand, DoubleClickCommand, MouseOverCommand etc. are all obvious extensions:  public static class ClickBehavior    {        public static DependencyProperty RightClickCommandProperty = DependencyProperty.RegisterAttached("RightClick",                    typeof(ICommand),

Tidak ada komentar:

Posting Komentar