RadTaskbarManager
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadTaskbarManager
Inheritance: objectRadTaskbarManager
Constructors
public RadTaskbarManager()
Methods
Activates an item on the taskbar. The window is not actually activated; the window's item on the taskbar is merely displayed as active.
public static void ActivateTab(IntPtr formHandle)
A handle to the window on the taskbar to be displayed as active.
Adds an item to the taskbar.
public static void AddTab(IntPtr formHandle)
A handle to the window to be added to the taskbar.
Deletes an item from the taskbar.
public static void DeleteTab(IntPtr formHandle)
A handle to the window to be deleted from the taskbar.
Flashes the specified window. It does not change the active state of the window.
public static void Flash(IntPtr formHandle, int count = 2147483647, int timeout = 0)
A handle to the window to be flashed. The window can be either opened or minimized.
countintNumber of times that the taskbar button will flash. If you do not specify a value the flashing is infinite, until the StopFlash(IntPtr) is executed.
timeoutintThe rate at which the window is to be flashed, in milliseconds. If timeout is zero, the function uses the default cursor blink rate.
Typically, you flash a window to inform the user that the window requires attention but does not currently have the keyboard focus. When a window flashes, it appears to change from inactive to active status. An inactive caption bar changes to an active caption bar; an active caption bar changes to an inactive caption bar.
Flashes the specified window. It does not change the active state of the window.
public static void FlashCore(IntPtr formHandle, FLASHINFOFLAGS flags, int count = 0, int timeout = 0)
A handle to the window to be flashed. The window can be either opened or minimized.
flagsFLASHINFOFLAGSThe flash status. This parameter can be one or more of the FLASHINFOFLAGS enum values.
countintThe number of times to flash the window.
timeoutintThe rate at which the window is to be flashed, in milliseconds. If timeout is zero, the function uses the default cursor blink rate.
Flashes the specified window until it is activated. Note that if the window is currently active the flash will not begin.
public static void FlashUntilActive(IntPtr formHandle, int count = 0, int timeout = 0)
A handle to the window to be flashed. The window can be either opened or minimized.
countintNumber of times that the taskbar button will flash. If you do not specify a value the flashing is infinite or until the app is focused, until the StopFlash(IntPtr) is executed.
timeoutintThe rate at which the window is to be flashed, in milliseconds. If timeout is zero, the function uses the default cursor blink rate.
Informs the taskbar that a new tab or document thumbnail has been provided for display in an application's taskbar group flyout.
public static void RegisterTab(IntPtr tabHandle, IntPtr handleMdi)
Handle of the tab or document window. This value is required and cannot be Zero.
handleMdiIntPtrHandle of the application's main window. This value tells the taskbar which application's preview group to attach the new thumbnail to. This value is required and cannot be Zero.
Marks a taskbar item as active but does not visually activate it.
public static void SetActiveAlt(IntPtr formHandle)
A handle to the window to be marked as active.
Applies an overlay to a taskbar button to indicate application status or a notification to the user.
public static void SetOverlayIcon(IntPtr formHandle, Bitmap image, string accessibilityText = null)
The handle of the window whose associated taskbar button receives the overlay. This handle must belong to a calling process associated with the button's application and must be a valid HWND or the call is ignored.
imageBitmapThe overlay image.
accessibilityTextstringA string that provides an alt text version of the information conveyed by the overlay, for accessibility purposes.
Applies an overlay to a taskbar button to indicate application status or a notification to the user.
public static void SetOverlayIcon(IntPtr formHandle, IntPtr hIcon, string accessibilityText = null)
The handle of the window whose associated taskbar button receives the overlay. This handle must belong to a calling process associated with the button's application and must be a valid HWND or the call is ignored.
hIconIntPtrThe handle of an icon to use as the overlay. This should be a small icon, measuring 16x16 pixels at 96 dpi. If an overlay icon is already applied to the taskbar button, that existing overlay is replaced. This value can be Zero. How a Zero value is handled depends on whether the taskbar button represents a single window or a group of windows. If the taskbar button represents a single window, the overlay icon is removed from the display. If the taskbar button represents a group of windows and a previous overlay is still available (received earlier than the current overlay, but not yet freed by a NULL value), then that previous overlay is displayed in place of the current overlay. It is the responsibility of the calling application to free hIcon when it is no longer needed. This can generally be done after you call SetOverlayIcon because the taskbar makes and uses its own copy of the icon.
accessibilityTextstringA string that provides an alt text version of the information conveyed by the overlay, for accessibility purposes.
Sets the type and state of the progress indicator displayed on a taskbar button.
public static void SetProgressState(IntPtr formHandle, TaskbarProgressState state)
The handle of the window in which the progress of an operation is being shown. This window's associated taskbar button will display the progress bar.
stateTaskbarProgressStateFlags that control the current state of the progress button. Specify only one of the following flags TaskbarProgressState; all states are mutually exclusive of all others.
Displays or updates a progress bar hosted in a taskbar button to show the specific percentage completed of the full operation.
public static void SetProgressValue(IntPtr formHandle, int completed, int total)
The handle of the window whose associated taskbar button is being used as a progress indicator.
completedintAn application-defined value that indicates the proportion of the operation that has been completed at the time the method is called.
totalintAn application-defined value that specifies the value completed will have when the operation is complete.
Displays or updates a progress bar hosted in a taskbar button to show the specific percentage completed of the full operation.
Informs the taskbar that a tab or document window has been made the active window.
public static void SetTabActive(IntPtr tabHandle, IntPtr handleMdi)
Handle of the active tab window. This handle must already be registered through RegisterTab(IntPtr, IntPtr). This value can be Zero if no tab is active.
handleMdiIntPtrHandle of the application's main window. This value tells the taskbar which group the thumbnail is a member of. This value is required and cannot be Zero.
Inserts a new thumbnail into a tabbed-document interface (TDI) or multiple-document interface (MDI) application's group flyout or moves an existing thumbnail to a new position in the application's group.
public static void SetTabOrder(IntPtr tabHandle, IntPtr insertBeforeHandle)
The handle of the tab window whose thumbnail is being placed. This value is required, must already be registered through RegisterTab(IntPtr, IntPtr), and cannot be Zero.
insertBeforeHandleIntPtrThe handle of the tab window whose thumbnail that tabHandle is inserted to the left of. This handle must already be registered through RegisterTab(IntPtr, IntPtr). If this value is Zero, the new thumbnail is added to the end of the list.
Allows a tab to specify whether the main application frame window or the tab window should be used as a thumbnail or in the peek feature under certain circumstances.
public static void SetTabProperties(IntPtr tabHandle, SetTabPropertiesOption option)
The handle of the tab window that is to have properties set. This handle must already be registered through RegisterTab(IntPtr, IntPtr).
optionSetTabPropertiesOptionOne or more members of the SetTabPropertiesOption enumeration that specify the displayed thumbnail and peek image source of the tab thumbnail.
Selects a portion of a window's client area to display as that window's thumbnail in the taskbar.
public static void SetThumbnailClip(Form form, Control clipControl)
The form represented in the taskbar.
clipControlControlThe control that will be displayed in the clip rectangle. To clear a clip that is already in place and return to the default display of the thumbnail, set this parameter to NULL.
Selects a portion of a window's client area to display as that window's thumbnail in the taskbar.
Selects a portion of a window's client area to display as that window's thumbnail in the taskbar.
public static void SetThumbnailClip(IntPtr formHandle, RefRECT clipRect)
The handle to a window represented in the taskbar.
clipRectRefRECTA RefRECT structure that specifies a selection within the window's client area, relative to the upper-left corner of that client area. To clear a clip that is already in place and return to the default display of the thumbnail, set this parameter to NULL.
Specifies or updates the text of the tooltip that is displayed when the mouse pointer rests on an individual preview thumbnail in a taskbar button flyout.
public static void SetThumbnailTooltip(IntPtr formHandle, string toolTip)
The handle to the window whose thumbnail displays the tooltip. This handle must belong to the calling process.
toolTipstringThe text to be displayed in the tooltip. This value can be NULL, in which case the title of the window specified by hwnd is used as the tooltip.
Stops the flashing of the specified window.
public static void StopFlash(IntPtr formHandle)
A handle to the window that is currently flashing.
Specifies an image list that contains button images for a toolbar embedded in a thumbnail image of a window in a taskbar button flyout.
public static void ThumbBarSetImageList(IntPtr formHandle, IntPtr imagelistHandle)
The handle of the window whose thumbnail representation contains the toolbar to be updated. This handle must belong to the calling process.
imagelistHandleIntPtrThe handle of the image list that contains all button images to be used in the toolbar.
Removes a thumbnail from an application's preview group when that tab or document is closed in the application.
public static void UnregisterTab(IntPtr tabHandle)
The handle of the tab window whose thumbnail is being removed. This is the same value with which the thumbnail was registered as part the group through RegisterTab(IntPtr, IntPtr). This value is required and cannot be Zero.