IModelLayoutItem.MinSize Property
Specifies the layout item’s minimum size.
Namespace: DevExpress.ExpressApp.Model
Assembly: DevExpress.ExpressApp.v24.1.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Property Value
Type | Description |
---|---|
Size | A System.Drawing.Size object that specifies the minimum size of the layout item. |
Remarks
This property value is passed to the LayoutControlItem.MinSize property. If using the MinSize property produces unexpected effects, use the Control.MinimumSize property as shown below.
using System;
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Editors;
using System.Windows.Forms;
//...
public class MyController : ViewController <DetailView> {
//...
protected override void OnActivated() {
base.OnActivated();
ViewItem item = View.FindItem("FullName");
item.ControlCreated += Item_ControlCreated;
}
private void Item_ControlCreated(object sender, EventArgs e) {
((ViewItem)sender).ControlCreated -= Item_ControlCreated;
((Control)((ViewItem)sender).Control).MinimumSize = new System.Drawing.Size(300, 0);
}
}
See Also