TaskBarService.SetState(Window?, TaskBarProgressState) method¶
Defined in
Type: TaskBarService
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.
public virtual bool SetState(Window? window, TaskBarProgressState taskBarProgressState) - 2.
public virtual bool SetState(nint hWnd, TaskBarProgressState taskBarProgressState)
1. Overload¶
public virtual bool SetState(Window? window, TaskBarProgressState taskBarProgressState)
Inherited documentation
These docs were inherited from ITaskBarService. The member doesn't override them on this type.
Summary: Sets taskbar state of the selected window.
Parameters
| Name | Type | Description |
|---|---|---|
window | Window? | Window to modify. |
taskBarProgressState | [TaskBarProgressState](# | Progress sate to set. |
Returns: bool -- true if the operation succeeds. false otherwise.
2. Overload¶
public virtual bool SetState(nint hWnd, TaskBarProgressState taskBarProgressState)
Inherited documentation
These docs were inherited from ITaskBarService. The member doesn't override them on this type.
Summary: Sets taskbar state of the selected window handle.
Parameters
| Name | Type | Description |
|---|---|---|
hWnd | nint | Window handle to modify. |
taskBarProgressState | [TaskBarProgressState](# | Progress sate to set. |
Returns: bool -- true if the operation succeeds. false otherwise.