Table of Contents

Class TreeLayoutEngineWidgetViewModel

Namespace
Whim.TreeLayout.Bar
Assembly
Whim.TreeLayout.Bar.dll
View model for the active tree layout engine on the given monitor.
public class TreeLayoutEngineWidgetViewModel : INotifyPropertyChanged, IDisposable
Inheritance
TreeLayoutEngineWidgetViewModel
Implements
Inherited Members

Constructors

TreeLayoutEngineWidgetViewModel(IContext, ITreeLayoutPlugin, IMonitor)

Initializes a new instance of TreeLayoutEngineWidgetViewModel.
public TreeLayoutEngineWidgetViewModel(IContext context, ITreeLayoutPlugin plugin, IMonitor monitor)

Parameters

context IContext
plugin ITreeLayoutPlugin
monitor IMonitor

Properties

AddNodeDirection

The string representation of the current tree layout engine's add node direction. If the current workspace's active layout engine is not a tree layout engine, this will be null.
public string? AddNodeDirection { get; }

Property Value

string

IsVisible

Shortcut to indicate if AddNodeDirection is null.
public Visibility IsVisible { get; }

Property Value

Visibility

ToggleDirectionCommand

Command to toggle through the directions.
public ToggleDirectionCommand ToggleDirectionCommand { get; }

Property Value

ToggleDirectionCommand

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

OnPropertyChanged(string?)

protected virtual void OnPropertyChanged(string? propertyName)

Parameters

propertyName string

ToggleDirection()

Toggle the AddNodeDirection in a clockwise direction.
public void ToggleDirection()

Events

PropertyChanged

Occurs when a property value changes.
public event PropertyChangedEventHandler? PropertyChanged

Event Type

PropertyChangedEventHandler