From ab916df3dc09684cac06e6cb46ada15491bcbd48 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Fri, 6 Feb 2015 21:07:27 +0100 Subject: [PATCH] Fix dropdown open/close behavior. Now that new eventing stuff is in place. Also fix bug with AddClassHandler where it was triyng to call every object irregardless of whether it was the correct type. --- Perspex.Controls/Button.cs | 5 ++--- Perspex.Controls/DropDown.cs | 5 ++++- Perspex.Controls/Popup.cs | 3 +-- Perspex.Controls/Primitives/ToggleButton.cs | 3 ++- Perspex.Interactivity/RoutedEvent.cs | 17 +++++++++++++++-- 5 files changed, 24 insertions(+), 9 deletions(-) diff --git a/Perspex.Controls/Button.cs b/Perspex.Controls/Button.cs index 494fd5a983..401aa7dc51 100644 --- a/Perspex.Controls/Button.cs +++ b/Perspex.Controls/Button.cs @@ -27,6 +27,7 @@ namespace Perspex.Controls static Button() { FocusableProperty.OverrideDefaultValue(typeof(Button), true); + ClickEvent.AddClassHandler