Table of Contents

Class TaskBarService

Namespace
Wpf.Ui
Assembly
Wpf.Ui.dll

Allows you to manage the animations of the window icon in the taskbar.

public class TaskBarService : ITaskBarService
Inheritance
TaskBarService
Implements
Inherited Members

Methods

GetState(nint)

Gets taskbar state of the selected window handle.

public virtual TaskBarProgressState GetState(nint hWnd)

Parameters

hWnd nint

Window handle.

Returns

TaskBarProgressState

The current state of system TaskBar.

GetState(Window?)

Gets taskbar state of the selected window.

public virtual TaskBarProgressState GetState(Window? window)

Parameters

window Window

Selected window.

Returns

TaskBarProgressState

The current state of system TaskBar.

SetState(nint, TaskBarProgressState)

Sets taskbar state of the selected window handle.

public virtual bool SetState(nint hWnd, TaskBarProgressState taskBarProgressState)

Parameters

hWnd nint

Window handle to modify.

taskBarProgressState TaskBarProgressState

Progress sate to set.

Returns

bool

true if the operation succeeds. false otherwise.

SetState(Window?, TaskBarProgressState)

Sets taskbar state of the selected window.

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

Parameters

window Window

Window to modify.

taskBarProgressState TaskBarProgressState

Progress sate to set.

Returns

bool

true if the operation succeeds. false otherwise.

SetValue(nint, int, int)

Sets taskbar value of the selected window handle.

public virtual bool SetValue(nint hWnd, int current, int total)

Parameters

hWnd nint

Window handle to modify.

current int

Current value to display.

total int

Returns

bool

true if the operation succeeds. false otherwise.

SetValue(nint, TaskBarProgressState, int, int)

Sets taskbar value of the selected window handle.

public virtual bool SetValue(nint hWnd, TaskBarProgressState taskBarProgressState, int current, int total)

Parameters

hWnd nint

Window handle to modify.

taskBarProgressState TaskBarProgressState

Progress sate to set.

current int

Current value to display.

total int

Maximum number for division.

Returns

bool

true if the operation succeeds. false otherwise.

SetValue(Window?, int, int)

Sets taskbar value of the selected window.

public virtual bool SetValue(Window? window, int current, int total)

Parameters

window Window

Window to modify.

current int

Current value to display.

total int

Maximum number for division.

Returns

bool

true if the operation succeeds. false otherwise.

SetValue(Window?, TaskBarProgressState, int, int)

Sets taskbar value of the selected window.

public virtual bool SetValue(Window? window, TaskBarProgressState taskBarProgressState, int current, int total)

Parameters

window Window

Window to modify.

taskBarProgressState TaskBarProgressState

Progress sate to set.

current int

Current value to display.

total int

Maximum number for division.

Returns

bool

true if the operation succeeds. false otherwise.