AvalonStudio.Extensibility.ToolBars.Models.CommandToolBarItem.CommandToolBarItem C# (CSharp) Method

CommandToolBarItem() public method

public CommandToolBarItem ( ToolBarItemDefinition toolBarItem, Command command, ICommand actualCommand, IToolBar parent ) : System
toolBarItem ToolBarItemDefinition
command AvalonStudio.Extensibility.Commands.Command
actualCommand ICommand
parent IToolBar
return System
		public CommandToolBarItem(ToolBarItemDefinition toolBarItem, Command command, ICommand actualCommand, IToolBar parent)
		{
			_toolBarItem = toolBarItem;
			_command = command;
			Command = actualCommand;
			_keyGesture = IoC.Get<ICommandKeyGestureService>().GetPrimaryKeyGesture(_command.CommandDefinition);
			_parent = parent;

			command.PropertyChanged += OnCommandPropertyChanged;
		}