diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-28 19:05:50 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-28 19:05:50 +0100 |
| commit | cb1d5e6ce6c9f61bef0e9b2c0db23cdc7d101920 (patch) | |
| tree | d41cc8f7c1326bb3174fe69b212f61b31e6fd7f1 /src | |
| parent | 1d5a24313cd20b97bf9a852e30bade904cb4b95c (diff) | |
combo minimum size
Diffstat (limited to 'src')
| -rw-r--r-- | src/GraphicObjects/ComboBox.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/GraphicObjects/ComboBox.cs b/src/GraphicObjects/ComboBox.cs index 4f948e5b..019d8c9c 100644 --- a/src/GraphicObjects/ComboBox.cs +++ b/src/GraphicObjects/ComboBox.cs @@ -1,4 +1,5 @@ using System; +using System.Xml.Serialization; namespace Crow { @@ -9,5 +10,22 @@ namespace Crow #region CTOR public ComboBox() : base(){ } #endregion + + Size minimumPopupSize = "100;100"; + [XmlIgnore]public Size MinimumPopupSize{ + get { return minimumPopupSize; } + set { + minimumPopupSize = value; + NotifyValueChanged ("MinimumPopupSize", minimumPopupSize); + } + } + + public override void OnLayoutChanges (LayoutingType layoutType) + { + base.OnLayoutChanges (layoutType); + + if (layoutType == LayoutingType.Width) + MinimumPopupSize = new Size (this.Slot.Width, minimumPopupSize.Height); + } } } |