From e3a586148d084b7eea974bae4fa00a19fc547c28 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Wed, 31 Jan 2018 14:27:38 +0100 Subject: :memo: --- src/GraphicObjects/Expandable.cs | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/GraphicObjects/Expandable.cs') diff --git a/src/GraphicObjects/Expandable.cs b/src/GraphicObjects/Expandable.cs index 243caf06..2328fd5f 100644 --- a/src/GraphicObjects/Expandable.cs +++ b/src/GraphicObjects/Expandable.cs @@ -30,6 +30,9 @@ using System.Xml.Serialization; namespace Crow { + /// + /// templated control whose content can be hidden and shown on demand + /// public class Expandable : TemplatedContainer { #region CTOR @@ -40,21 +43,31 @@ namespace Crow #region Private fields bool _isExpanded; string image; - Container _contentContainer; #endregion #region Event Handlers + /// + /// Occurs when control is expanded. + /// public event EventHandler Expand; + /// + /// Occurs when control is collapsed. + /// public event EventHandler Collapse; #endregion public BooleanTestOnInstance GetIsExpandable; + /// + /// mouse click event handler for easy expand triggering in IML + /// public void onClickForExpand (object sender, MouseButtonEventArgs e) { IsExpanded = !IsExpanded; } - + /// + /// Implement the abstract Content property of TemplatedControl + /// public override GraphicObject Content { get { return _contentContainer == null ? null : _contentContainer.Child; -- cgit v1.3.1-4-g156e