From 8a25a19ee73e8b7c0c9726bbb2ce4ec918f4e905 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Fri, 27 Jan 2017 00:21:48 +0100 Subject: icon menuitem, PopWidth and PopHeight, commands --- src/GraphicObjects/Button.cs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src/GraphicObjects/Button.cs') diff --git a/src/GraphicObjects/Button.cs b/src/GraphicObjects/Button.cs index 1cfbe85c..c73062f0 100644 --- a/src/GraphicObjects/Button.cs +++ b/src/GraphicObjects/Button.cs @@ -26,7 +26,6 @@ namespace Crow public event EventHandler Pressed; public event EventHandler Released; - public event EventHandler Clicked; #region TemplatedContainer overrides public override GraphicObject Content { @@ -34,7 +33,7 @@ namespace Crow return _contentContainer == null ? null : _contentContainer.Child; } set { - if (_contentContainer != null) + if (_contentContainer != null) _contentContainer.SetChild(value); } } @@ -69,24 +68,24 @@ namespace Crow [XmlAttributeAttribute][DefaultValue("Button")] public string Caption { - get { return caption; } + get { return caption; } set { if (caption == value) return; - caption = value; + caption = value; NotifyValueChanged ("Caption", caption); } - } + } [XmlAttributeAttribute][DefaultValue("#Crow.Images.button.svg")] public string Image { - get { return image; } + get { return image; } set { if (image == value) return; - image = value; + image = value; NotifyValueChanged ("Image", image); } - } + } [XmlAttributeAttribute][DefaultValue(false)] public bool IsPressed { -- cgit v1.3.1-4-g156e