Table of Contents

Class ToolViewModel

Namespace
Artemis.UI.Shared.Services.ProfileEditor
Assembly
Artemis.UI.Shared.dll

Represents a profile editor tool.

public abstract class ToolViewModel : ActivatableViewModelBase, IReactiveNotifyPropertyChanged<IReactiveObject>, IHandleObservableErrors, IReactiveObject, IEnableLogger, IActivatableViewModel, IToolViewModel, IDisposable
Inheritance
object
ReactiveObject
ToolViewModel
Implements
IReactiveNotifyPropertyChanged<IReactiveObject>
IHandleObservableErrors
IReactiveObject
IEnableLogger
IActivatableViewModel
Inherited Members
ReactiveObject.SuppressChangeNotifications()
ReactiveObject.AreChangeNotificationsEnabled()
ReactiveObject.DelayChangeNotifications()
ReactiveObject.Changing
ReactiveObject.Changed
ReactiveObject.ThrownExceptions
ReactiveObject.PropertyChanging
ReactiveObject.PropertyChanged

Properties

Hotkey

Gets the keyboard hotkey that activates the tool.

public abstract Hotkey? Hotkey { get; }

Property Value

Hotkey

Icon

Gets the icon which this tool should show in the toolbar.

public abstract MaterialIconKind Icon { get; }

Property Value

MaterialIconKind

IsEnabled

Gets a boolean indicating whether the tool is enabled.

public abstract bool IsEnabled { get; }

Property Value

bool

IsExclusive

Gets a boolean indicating whether or not this tool is exclusive. Exclusive tools deactivate any other exclusive tools when activated.

public abstract bool IsExclusive { get; }

Property Value

bool

IsSelected

Gets or sets a boolean indicating whether the tool is selected.

public bool IsSelected { get; set; }

Property Value

bool

Order

Gets the order in which this tool should appear in the toolbar.

public abstract int Order { get; }

Property Value

int

ShowInToolbar

Gets or sets a boolean indicating whether this tool should be shown in the toolbar.

public abstract bool ShowInToolbar { get; }

Property Value

bool

ToolTip

Gets the tooltip which this tool should show in the toolbar.

public abstract string ToolTip { get; }

Property Value

string

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Dispose(bool)

Releases the unmanaged resources used by the object and optionally releases the managed resources.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.