From cfb314bd4fe70c83f43bb254bcc1bdb54b2dc827 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Tue, 31 Jan 2017 15:58:52 +0100 Subject: move recurrent 'Caption' property in Templated Control --- src/GraphicObjects/GroupBox.cs | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'src/GraphicObjects/GroupBox.cs') diff --git a/src/GraphicObjects/GroupBox.cs b/src/GraphicObjects/GroupBox.cs index db457282..34094703 100644 --- a/src/GraphicObjects/GroupBox.cs +++ b/src/GraphicObjects/GroupBox.cs @@ -26,12 +26,11 @@ using System.ComponentModel; namespace Crow { public class GroupBox : TemplatedContainer - { - string caption; + { Container _contentContainer; #region CTOR - public GroupBox() : base(){} + public GroupBox() : base(){} #endregion #region Template overrides @@ -50,16 +49,5 @@ namespace Crow _contentContainer = this.child.FindByName ("Content") as Container; } #endregion - - [XmlAttributeAttribute][DefaultValue("Groupbox")] - public string Caption { - get { return caption; } - set { - if (caption == value) - return; - caption = value; - NotifyValueChanged ("Caption", caption); - } - } } } -- cgit v1.3.1-4-g156e