Skip to content

Allow ActionItems to be directly specified between the ActionBar opening and closing tags. #518

@PanayotCankov

Description

@PanayotCankov

The silly me put this on a page:

  <Page.actionBar>
    <ActionBar>
      <ActionItem text="{{ resources.signUp }}" tap="signUpMenuItemTap" android.position="actionBar" />
    </ActionBar>
  </Page.actionBar>

At runtime it works like a charm. The only problem is the action item does not appear.

Obviously the correct usage is:

  <Page.actionBar>
    <ActionBar>
      <ActionBar.actionItems>
        <ActionItem text="{{ resources.signUp }}" tap="signUpMenuItemTap" android.position="actionBar" />
      </ActionBar.actionItems>
    </ActionBar>
  </Page.actionBar>

The problem is the first case does not generate neither compile-time nor run-time error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions