diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2017-01-31 15:58:52 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2017-01-31 15:58:52 +0100 |
| commit | cfb314bd4fe70c83f43bb254bcc1bdb54b2dc827 (patch) | |
| tree | 87c1a868c22ad302325cd55a4468a042e1ba437b /src/GraphicObjects/Popper.cs | |
| parent | 177aa594f6a93d4c8c9ee38546f12851782cb838 (diff) | |
move recurrent 'Caption' property in Templated Control
Diffstat (limited to 'src/GraphicObjects/Popper.cs')
| -rw-r--r-- | src/GraphicObjects/Popper.cs | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/GraphicObjects/Popper.cs b/src/GraphicObjects/Popper.cs index 0b022842..10d5d30e 100644 --- a/src/GraphicObjects/Popper.cs +++ b/src/GraphicObjects/Popper.cs @@ -35,25 +35,14 @@ namespace Crow #endregion bool _isPopped, _canPop; - string caption; Alignment popDirection; GraphicObject _content; Measure popWidth, popHeight; - public event EventHandler Pop; - public event EventHandler Unpop; + public event EventHandler Popped; + public event EventHandler Unpoped; #region Public Properties - [XmlAttributeAttribute()][DefaultValue("Popper")] - public string Caption { - get { return caption; } - set { - if (caption == value) - return; - caption = value; - NotifyValueChanged ("Caption", caption); - } - } [XmlAttributeAttribute()][DefaultValue("Fit")] public virtual Measure PopWidth { get { return popWidth; } @@ -234,14 +223,14 @@ namespace Crow CurrentInterface.PutOnTop (Content, true); _content_LayoutChanged (this, new LayoutingEventArgs (LayoutingType.Sizing)); } - Pop.Raise (this, e); + Popped.Raise (this, e); } public virtual void onUnpop(object sender, EventArgs e) { if (Content != null) { Content.Visible = false; } - Unpop.Raise (this, e); + Unpoped.Raise (this, e); } } } |