Windows Ribbon for WinForms, Part 4 - Application Menu with Buttons(blogs.microsoft.co.il)

submitted by arikparikp(1204) 2 years, 8 months ago

Before we start to use ribbon features, we must learn the basics of ribbon markup. Commands and Views A command is an action that is identified by a number, it can be opening the save-as dialog, printing the current document, closing the application, etc. every thing you can do in a function call. A view is a graphical representation of [usually several] commands. It defines the type of controls used to activate the commands and their size, order and layout on screen. So using commands and views is actually just another instance of the MVC design pattern, which allows us to separate business logic from presentation logic. Now we will write a new WinForms application with ribbon that uses the application menu with simple buttons. We start this sample with the an empty WinForms project that already includes ribbon support (see previous post for details). On the next sections I’ll explain: Commands part of the ribbon markup Views part of the ribbon markup code-behind, responding to ribbon events As always, the entire code is available at windowsribbon.codeplex.com

add a comment |category: |Views: 22

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story