Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] ToolbarItem Order property ignored #6127

Closed
Darlingtone opened this issue May 8, 2019 · 24 comments
Closed

[Bug] ToolbarItem Order property ignored #6127

Darlingtone opened this issue May 8, 2019 · 24 comments

Comments

@Darlingtone
Copy link

Description

Then Order property of ToolbarItem is totally ignored, the item is always displayed as primary even when set to secondary

Steps to Reproduce

  1. Create a new XF project using the Shell template
  2. On a ContentPage add ToolbarItem and set Order to secondary
  3. Run on Android device

Expected Behavior

Items with order set to primary show on navigation bar while items with order set to secondary shows as a pop up menu when the 3-dots icon is tapped

Actual Behavior

All ToolbarItem show up on the Navigation bar regardless of their order settings, the 3-dots icon don't even show

Basic Information

  • Version with issue: Xamarin.Forms 4.0.0.394984-pre10
  • IDE: Visual Studio Community 2019
@pauldipietro pauldipietro added this to New in Triage May 8, 2019
@Darlingtone Darlingtone changed the title ToolbarItem Order property ignored [Bug] ToolbarItem Order property ignored May 8, 2019
@samhouts samhouts added a/shell 🐚 s/unverified New report that has yet to be verified t/bug 🐛 p/Android labels May 11, 2019
@kingces95
Copy link
Contributor

Would you mind attaching a zipped reproduction?

@kingces95 kingces95 added the s/needs-repro ❔ This reported issue doesn't include a sample project reproducing the issue. Please provide one. label May 22, 2019
@kingces95 kingces95 moved this from New to Needs Info in Triage May 22, 2019
@Darlingtone
Copy link
Author

Darlingtone commented May 22, 2019

Here is a GitHub repo XamToolbarDemo

This is a just the default VS 2019 Xamarin.Forms App template I only added more Toolbar items and set their Order property to Secondary

Tested on actual device Tecno F1 Android 8.1.0

@marcellangmaier
Copy link

Experienced the same behaviour.

@samhouts samhouts removed the s/needs-repro ❔ This reported issue doesn't include a sample project reproducing the issue. Please provide one. label May 30, 2019
@samhouts samhouts moved this from Needs Info to New in Triage May 30, 2019
@samhouts samhouts added e/3 🕒 3 and removed s/unverified New report that has yet to be verified labels Jun 1, 2019
@samhouts samhouts moved this from New to Ready For Work in Triage Jun 1, 2019
@samhouts samhouts removed this from Ready For Work in Triage Jun 1, 2019
@anotherlab
Copy link

I'm experiencing the same behavior on Android & iOS.

VS 2019
XF 4.0.0.482894

@marcellangmaier
Copy link

same with
XF 4.1.0.496342-pre2

@eramrit78
Copy link

eramrit78 commented Jul 12, 2019

same issue i have.
in XF 4.1

Annotation 2019-07-12 184004

@Munde
Copy link

Munde commented Aug 22, 2019

Experiencing the same
screenshot-1566484382764

@edupxavier
Copy link

Same with XF 4.2.0.709249

image

@eramrit78
Copy link

Issue come when used shell.

@mfeingol
Copy link

Same issue here with 4.2.0.778463. This is blocking my intended migration from Master-Detail to Shell.

@samhouts: I don't suppose there are any workarounds for this?

@samhouts
Copy link
Member

I'm afraid I'm not aware of any workarounds at this time. @PureWeen ?

@jfversluis
Copy link
Member

The error originates here. The Order simply is not taken into account.

I've opened a PR to fix that

@mfeingol
Copy link

@jfversluis: greatly appreciated!

One question, while you're in the area: I probably should have filed an issue for this, but when I was evaluating porting over to Shell, I noticed that ToolbarItems from sub-pages inside a TabbedPage weren't being picked up by the Shell at all. Is that by design, or does it also need to be fixed?

(I can provide a repro if needed.)

@jfversluis
Copy link
Member

@iooovolts @Darlingtone I think the fix in my PR has just missed the release that just came out. Please be on a lookout for the next 4.2 or 4.3-pre release which should include it for sure.

@samhouts samhouts added this to In Progress in v4.3.0 Oct 17, 2019
@samhouts samhouts moved this from In Progress to Done in v4.3.0 Oct 17, 2019
@samhouts samhouts removed this from Done in v4.3.0 Oct 17, 2019
@samhouts samhouts added this to In Progress in v4.3.0 Oct 17, 2019
@samhouts samhouts moved this from In Progress to Done in v4.3.0 Oct 17, 2019
@samhouts samhouts removed this from Done in v4.3.0 Oct 17, 2019
@samhouts samhouts added this to In Progress in v4.3.0 Oct 17, 2019
@samhouts samhouts moved this from In Progress to Done in v4.3.0 Oct 17, 2019
@samhouts samhouts removed this from Done in v4.3.0 Oct 17, 2019
@samhouts samhouts added this to In Progress in v4.3.0 Oct 17, 2019
@samhouts samhouts moved this from In Progress to Done in v4.3.0 Oct 17, 2019
@samhouts samhouts removed this from Done in v4.3.0 Oct 17, 2019
@samhouts samhouts added this to In Progress in v4.3.0 Oct 17, 2019
@samhouts samhouts moved this from In Progress to Done in v4.3.0 Oct 17, 2019
@samhouts samhouts removed this from Done in v4.3.0 Oct 17, 2019
@samhouts samhouts added this to In Progress in v4.3.0 Oct 17, 2019
@samhouts samhouts moved this from In Progress to Done in v4.3.0 Oct 17, 2019
@samhouts samhouts removed this from Done in v4.3.0 Oct 17, 2019
@samhouts samhouts added this to In Progress in v4.3.0 Oct 17, 2019
@samhouts samhouts moved this from In Progress to Done in v4.3.0 Oct 17, 2019
@samhouts samhouts removed this from Done in v4.3.0 Oct 17, 2019
@samhouts samhouts added this to In Progress in v4.3.0 Oct 17, 2019
@samhouts samhouts removed this from In Progress in v4.3.0 Oct 17, 2019
@KoenMat
Copy link

KoenMat commented Oct 31, 2019

Since 4.3.0.908675 it is fixed for Android, but not for IOS.
ToolbarItems always appear as primary even if configered as secondary.

@jfversluis
Copy link
Member

@KoenMat it seems you are totally right. Since this was focussed on Android I didn't pay any attention to iOS. I've opened a new issue for it to track it properly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
v4.2.0
  
Done
Development

No branches or pull requests