Class ControlUtils
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.
- CreateMoreActionsButton(ToolBar, ContextMenu)
Creates a "More actions" button in the specified toolbar which shows the specified context menu when clicked.
- EnableContextMenuOnLongTap(AbstractControl, bool)
Enables showing context menu on long tap for the specified control. This is useful for touch devices where right-click is not available. This method can be called multiple times for the same control.
- EnumVisibleControls<T>()
Enumerates all visible controls of type
Tfrom the most recently activated window.
- FindVisibleControl<T>()
Finds visible control of the specified type.
- GetControlForTests<T>()
Retrieves the first visible control of type
Tthat is not marked to be hidden from tests.
- 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
currentValueif it is less than value specified inminValueAtLeast.
- GrowSize(SizeD?, SizeD)
Increases size specified in
currentSizeif it is less than size specified inminSizeAtLeast. Width and height are increased individually.
- IsScaleFactorCloseToOne(float)
Determines whether the specified DPI scale factor is effectively equal to 1.0 within a small tolerance.
- ResetIsMouseLeftButtonDown(AbstractControl, bool)
Resets the IsMouseLeftButtonDown property of the specified control and its child controls.
- RunTestControlAction<T>(string, Action<T>?)
Schedules an action to be performed on a test control of the specified type after setting focus and processing pending events.
- 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.