When the form is resized, the layout item and embedded control are also resized. WindowsUIButtonPanel.AutoSizeInLayoutControl.OfficeNavigationBar.AutoSizeInLayoutControl.StandaloneBarDockControl.AutoSizeInLayoutControl. ![]() To enable this mode, use the following properties: LayoutControlItemA1.MinSize = New Size(100, 24)Ĭertain controls can be automatically sized to fit the content, not the layout item. LayoutControlItemA1.MaxSize = New Size(250, 24) LayoutControlItemA1.SizeConstraintsType = SizeConstraintsType.Custom LayoutControlItemA1.MinSize = new Size(100, 24) LayoutControlItemA1.MaxSize = new Size(250, 24) The Height property (for MaxSize and MinSize properties) is set to the Size property’s Height property value. The Width property (for MaxSize and MinSize properties) is set to the Size property’s Width property value. The MaxSize and MinSize properties are set to the current Size property value. Locks the layout item’s current width and height. Sets the MinSize property to the default minimum value. Sets the layout item’s SizeConstraintsType to Custom. Sets the MaxSize and MinSize properties to default values. Sets the layout item’s SizeConstraintsType to Default. The following table describes commands in the context menu.Īpplies the default size constraints to the layout item. To specify size constraints, users can utilize an item’s context menu. Users can invoke the Customization Form to customize the layout - show/hide/replace layout items, show/hide captions, add/remove separators, etc. To view more code examples, run the following demo: Custom size constraints. To register default size constraints for a custom control, use the static ( Shared in VB) ConstraintsManager.RegisterControlConstraints method. The table below contains default size constraints and caption visibility for standard. ![]() Default Size Constraints for Standard WinForms Controls The ControlDefaultMinSizeCalcMode property specifies whether to use the Control.MinimumSize property value, the IXtraResizableControl.MinSize property value, or the smaller of the two values. The ControlDefaultMaxSizeCalcMode property specifies whether to use the Control.MaximumSize property value, the IXtraResizableControl.MaxSize property value, or the larger of the two values.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |