NCommand and NButton


Author
Message
Jeff McMahon
Jeff McMahon
Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)
Group: Forum Members
Posts: 5, Visits: 1


I am using the NCommand approach to menu and toolbar generation... and I like it.

I am looking to extend the NCommand approach to buttons. Found the NButton control, but do not see how to automatically bind an NCommand to the NButton - the expected Command property of NButton is not there :-)

... there must be a way since its such an obvious extension.

Any ideas ? (Using Vision 2010 vol1. in a WinForms app)


Thanks
J
Reply
Angel Chorbadzhiev
Angel Chorbadzhiev
Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)
Group: Forum Members
Posts: 139, Visits: 184

Hello Jeff,

The default representation of NCommand was made to look like a button.

You can find the properties that setup text, image etc. in NCommand.Properties property:

NCommand cmd1 = new NCommand();

cmd.Properties.Text = "Command 1";

...

There is also another possibility to extend the command to host and display any control you want.

In the following topic in the forum you can find example that demonstrates how to create such command:

http://community.nevron.com/Forum/shwmessage.aspx?ForumID=2&MessageID=3077

Regards,

Angel.


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search