Skip to content

ITaskBarService.SetState(nint, TaskBarProgressState) method

Defined in

Type: ITaskBarService Namespace: CrissCross.WPF.UI Assembly: CrissCross.WPF.UI.dll

Applies to

net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481

Overloads

  • 1. bool SetState(nint hWnd, TaskBarProgressState taskBarProgressState)
  • 2. bool SetState(Window? window, TaskBarProgressState taskBarProgressState)

1. Overload

bool SetState(nint hWnd, TaskBarProgressState taskBarProgressState)

Summary: Sets taskbar state of the selected window handle.

Parameters

NameTypeDescription
hWndnintWindow handle to modify.
taskBarProgressState[TaskBarProgressState](#Progress sate to set.

Returns: bool -- true if the operation succeeds. false otherwise.

2. Overload

bool SetState(Window? window, TaskBarProgressState taskBarProgressState)

Summary: Sets taskbar state of the selected window.

Parameters

NameTypeDescription
windowWindow?Window to modify.
taskBarProgressState[TaskBarProgressState](#Progress sate to set.

Returns: bool -- true if the operation succeeds. false otherwise.