Method CreateMenuItemTrackPaintingTime
CreateMenuItemTrackPaintingTime(UserControl, int)
Creates a menu item that tracks the painting time for all modes of the specified control.
public static MenuItem CreateMenuItemTrackPaintingTime(UserControl control, int repeatCount = 250)
Parameters
controlUserControlThe UserControl for which painting time will be tracked.
repeatCountintThe number of times the painting operation should be repeated for tracking purposes. Must be a positive integer.
Returns
- MenuItem
A MenuItem that, when executed, tracks the painting time and displays the results in the Output panel.
Remarks
After tracking the painting time, the control's overlays are cleared, and a tooltip is displayed to indicate that the operation is complete.