Table of Contents

Interface ITaskBarService

Namespace
Wpf.Ui
Assembly
Wpf.Ui.dll

Represents a contract with a service that provides methods for manipulating the taskbar.

public interface ITaskBarService

Methods

GetState(IntPtr)

Gets taskbar state of the selected window handle.

TaskBarProgressState GetState(IntPtr hWnd)

Parameters

hWnd IntPtr

Window handle.

Returns

TaskBarProgressState

The current state of system TaskBar.

GetState(Window?)

Gets taskbar state of the selected window.

TaskBarProgressState GetState(Window? window)

Parameters

window Window

Selected window.

Returns

TaskBarProgressState

The current state of system TaskBar.

SetState(IntPtr, TaskBarProgressState)

Sets taskbar state of the selected window handle.

bool SetState(IntPtr hWnd, TaskBarProgressState taskBarProgressState)

Parameters

hWnd IntPtr

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.

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(IntPtr, int, int)

Sets taskbar value of the selected window handle.

bool SetValue(IntPtr hWnd, int current, int max)

Parameters

hWnd IntPtr

Window handle to modify.

current int

Current value to display.

max int

Maximum number for division.

Returns

bool

true if the operation succeeds. false otherwise.

SetValue(IntPtr, TaskBarProgressState, int, int)

Sets taskbar value of the selected window handle.

bool SetValue(IntPtr hWnd, TaskBarProgressState taskBarProgressState, int current, int total)

Parameters

hWnd IntPtr

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.

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.

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.