Table of Contents

Class ToggleDirectionCommand

Namespace
Whim.TreeLayout.Bar
Assembly
Whim.TreeLayout.Bar.dll
Command for toggling the direction to add new windows in.
public class ToggleDirectionCommand : ICommand
Inheritance
ToggleDirectionCommand
Implements
Inherited Members

Remarks

Creates a new instance of ToggleDirectionCommand.

Constructors

ToggleDirectionCommand(TreeLayoutEngineWidgetViewModel)

Command for toggling the direction to add new windows in.
public ToggleDirectionCommand(TreeLayoutEngineWidgetViewModel viewModel)

Parameters

viewModel TreeLayoutEngineWidgetViewModel

Remarks

Creates a new instance of ToggleDirectionCommand.

Methods

CanExecute(object?)

Defines the method that determines whether the command can execute in its current state.
public bool CanExecute(object? parameter)

Parameters

parameter object
Data used by the command. If the command does not require data to be passed, this object can be set to null.

Returns

bool
true if this command can be executed; otherwise, false.

Execute(object?)

Defines the method to be called when the command is invoked.
public void Execute(object? paramter)

Parameters

paramter object

Events

CanExecuteChanged

Occurs when changes occur that affect whether or not the command should execute.
public event EventHandler? CanExecuteChanged

Event Type

EventHandler