Table of Contents

Class ControlUtils

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Contains static methods and properties which are AbstractControl related.

public static class ControlUtils
Inheritance
ControlUtils

Properties

Empty

Gets an empty control for the debug purposes.

Methods

CreateMenuItemRenderingModeSelector(UserControl)

Creates a menu item that allows the user to select the rendering mode for the specified control.

CreateMenuItemTrackPaintingTime(UserControl, int)

Creates a menu item that tracks the painting time for all modes of the specified control.

FindVisibleControl<T>()

Finds visible control of the specified type.

GetParentPlatformUserControl(AbstractControl?)

Retrieves the parent platform-specific user control of the specified AbstractControl.

GetRenderingMode(AbstractControl)

Determines the rendering mode to be used for the specified control based on its rendering flags.

GrowCoord(float?, float)

Increases width or height specified in currentValue if it is less than value specified in minValueAtLeast.

GrowSize(SizeD?, SizeD)

Increases size specified in currentSize if it is less than size specified in minSizeAtLeast. Width and height are increased individually.

SafeControl(object?)

Gets control for measure purposes in a safe way. Do not change any properties of the returned control.

SetRenderingMode(AbstractControl, ControlRenderingMode)

Configures the rendering mode for the specified control.