C# Class Dynamo.Wpf.Extensions.ViewLoadedParams

Application level parameters passed to an extension when the DynamoView is loaded
Inheritance: Dynamo.Extensions.ReadyParams
Show file Open project: DynamoDS/Dynamo Class Usage Examples

Public Properties

Property Type Description
dynamoMenu System.Windows.Controls.Menu

Public Methods

Method Description
AddMenuItem ( MenuBarType type, System.Windows.Controls.MenuItem menuItem, int index = -1 ) : void
AddSeparator ( MenuBarType type, System.Windows.Controls.Separator separatorObj, int index = -1 ) : void

Private Methods

Method Description
AddItemToMenu ( MenuBarType type, Control itemToAdd, int index ) : void
OnSelectionCollectionChanged ( object sender, NotifyCollectionChangedEventArgs notifyCollectionChangedEventArgs ) : void
SearchForMenuItem ( MenuBarType type ) : System.Windows.Controls.MenuItem

Searchs for dynamo parent menu item. Parent item can be: file menu, edit menu, view menu and help mebu bars.

ViewLoadedParams ( DynamoView dynamoV, DynamoViewModel dynamoVM ) : System

Method Details

AddMenuItem() public method

public AddMenuItem ( MenuBarType type, System.Windows.Controls.MenuItem menuItem, int index = -1 ) : void
type MenuBarType
menuItem System.Windows.Controls.MenuItem
index int
return void

AddSeparator() public method

public AddSeparator ( MenuBarType type, System.Windows.Controls.Separator separatorObj, int index = -1 ) : void
type MenuBarType
separatorObj System.Windows.Controls.Separator
index int
return void

Property Details

dynamoMenu public property

public Menu,System.Windows.Controls dynamoMenu
return System.Windows.Controls.Menu