Bug 31854 - add the same label to two stack layout in two contentpage
Summary: add the same label to two stack layout in two contentpage
Status: RESOLVED INVALID
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.4.2
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-07-11 15:31 UTC by Alessandro
Modified: 2015-07-13 05:21 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
demo test for bug (184.44 KB, application/zip)
2015-07-11 15:31 UTC, Alessandro
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description Alessandro 2015-07-11 15:31:54 UTC
Created attachment 11989 [details]
demo test for bug

Hi friends.
I have this situation (tested in iOS).
I have a tabbedpage
In this tabbed page I add 2 content page
I have a Label labelTitolo.
I want this labelTitolo in all 2 content page so I add the same labelTitolo to 2 stack layout.
I see labelTitolo only on the second tab.
If I remove labelTitolo from the second stack layout, I see labelTitolo in the first tab
Comment 1 Stephane Delcroix 2015-07-13 04:01:01 UTC
Alessandro,

A Label, or any other VisualElement, can't be used at multiple places at the same time. This would break parenting, bindings, and so many other concept I don't even want to think about.

You then need 2 different labels. They eventually can share a style.

Hope it helps

The Xamarin.Forms Team
Comment 2 Alessandro 2015-07-13 05:21:51 UTC
Thanks Stephane. Now  it's clear