Skip to content

TaskBarProgress.SetState(Window?, TaskBarProgressState) method

Defined in

Type: TaskBarProgress Namespace: CrissCross.WPF.UI.TaskBar 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. public static bool SetState(Window? window, TaskBarProgressState taskBarProgressState)
  • 2. public static bool SetState(nint hWnd, TaskBarProgressState taskBarProgressState)

1. Overload

public static bool SetState(Window? window, TaskBarProgressState taskBarProgressState)

Summary: Allows to change the status of the progress bar in the task bar.

Parameters

NameTypeDescription
windowWindow?Window to manipulate.
taskBarProgressState[TaskBarProgressState](#State of the progress indicator.

Returns: bool -- A bool.

2. Overload

public static bool SetState(nint hWnd, TaskBarProgressState taskBarProgressState)

Summary: Allows to change the status of the progress bar in the task bar.

Parameters

NameTypeDescription
hWndnintWindow handle.
taskBarProgressState[TaskBarProgressState](#State of the progress indicator.

Returns: bool -- A bool.

Exceptions

TypeCondition
System.ExceptionTaskbar functions not available.