C# Class Open.Core.UI.Controls.ToolBase

The base class for tools.
Inheritance: Open.Core.Common.ModelBase, ITool
ファイルを表示 Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Public Methods

Method Description
CreateView ( ) : FrameworkElement

Creates a new instance of the tool's view.

Protected Methods

Method Description
OnIsEnabledChanged ( ) : void

Invoked when the IsEnabled property changes.

OnIsVisibleChanged ( ) : void

Invoked when the IsVisible property changes.

PublishToolEvent ( bool force = false ) : void

Fires the executed event through the EventBus.

ToolBase ( ) : System.Windows

Constructor.

Method Details

CreateView() public method

Creates a new instance of the tool's view.
public CreateView ( ) : FrameworkElement
return System.Windows.FrameworkElement

OnIsEnabledChanged() protected method

Invoked when the IsEnabled property changes.
protected OnIsEnabledChanged ( ) : void
return void

OnIsVisibleChanged() protected method

Invoked when the IsVisible property changes.
protected OnIsVisibleChanged ( ) : void
return void

PublishToolEvent() protected method

Fires the executed event through the EventBus.
protected PublishToolEvent ( bool force = false ) : void
force bool /// The event is not fired if the tool is not enabled. /// Setting force to true will cause the event to fire even if the button is disabled. ///
return void

ToolBase() protected method

Constructor.
protected ToolBase ( ) : System.Windows
return System.Windows