Ticket Q416185
Visible to All Users

Buttons, main menu, toolbar and navigation items vs XAF Actions

created 13 years ago

Hi !

Slowly, but I started understand the working of XAF. I can do a lot of things with XAF, but there are some things in twilight zone…

If you have to compare a simple .NET program, what is the equivalent the .NET menu item ?
I mean, e.g. I make a menu item to maintenance the datas of the cutomers, how can you do in XAF ?
Do you make an navigation item ??

Thanks for the help,
,Best regards,
Zoltan

Answers

created 13 years ago (modified 13 years ago)

Hello,
In XAF, menu commands correspond to Actions.
Here is a help article on how to add a simple command that will be rendered as a toolbar button by default.
In general, Actions may correspond not only to a button. Actions may be even not visualized in the UI. Think of Actions like about any commands that can be executed by end-users.
So, main menu items, navigation and toolbar items, buttons in the lookup and other editors are all Actions.
Actions can reside within Window and View Controllers. In the latter case, they depend on a View (DetailView, ListView, DashboardView, etc.). In the first case, they do not depend on a View.
I suggest you learn more on Controllers in our docs as well.
Another important thing to know about XAF Actions is their Category property. It controls the position of an Action in the application ( the main menu, context menu, certain area in the toolbar, or a dialog window, etc.).
It will help you see the full picture sooner.

    Show previous comments (1)
    Dennis Garavsky (DevExpress) 13 years ago

      Zoltan,
      I have updated my original answer.

        I trying for 2 days but can't use Action on new tab of the ribbon… Is there any sample to put Action on new Tab name of the ribbon bar?

        Dennis Garavsky (DevExpress) 13 years ago

          Zoltan, the Support Center concept does not allow multiple problems within a thread as this makes it difficult to properly track such items. Please open a new issue for each question you want to ask in the future. For now, I have created a separate issue on your behalf myself: Q286325 and will answer you there as soon as I can.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.