Bug 28545 - AbsoluteLayout attributes don't work in a style
Summary: AbsoluteLayout attributes don't work in a style
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.4.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Stephane Delcroix
Depends on:
Reported: 2015-03-30 10:45 UTC by Peter Major
Modified: 2015-06-18 14:33 UTC (History)
7 users (show)

Tags: all absolutelayout xaml styles AC
Is this bug a regression?: ---
Last known good build:

Sample project (222.47 KB, application/zip)
2015-03-30 10:46 UTC, Peter Major

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:

Description Peter Major 2015-03-30 10:45:39 UTC
In the sample project, there are two labels positioned in an AbsoluteLayout

When the AbsoluteLayout attached properties are specified in a style resource, they are not applied (grid row 1)

When the AbsoluteLayout attached properties are specified directly on the label, they are applied (grid row 2)

Sounds like a bug where AbsoluteLayout attached properties are not applied if they come from a style resource.

See attached project.
Comment 1 Peter Major 2015-03-30 10:46:37 UTC
Created attachment 10555 [details]
Sample project
Comment 2 Ram Chandra 2015-03-31 13:37:02 UTC
I have checked this issue and with the help of attached project, I am able to reproduce this issue.

I observed that the attached property of absolute layout is not applied when using from style resource.

Screencast: http://www.screencast.com/t/bz9cXVW1

IDE logs: https://gist.github.com/RamChBachkheti/da40f6ce78d491cfe8a3
Application output: https://gist.github.com/RamChBachkheti/6e7e23e5f0422c7b09ef

Environment Info:


=== Xamarin Studio ===

Version 5.8.2 (build 7)
Installation UUID: 6ea47b0d-1852-4aaf-808d-373ff0a5002b
	Mono 3.12.1 ((detached/0849ec7)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312010003

=== Apple Developer Tools ===

Xcode 6.0.1 (6528)
Build 6A317

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: 981acb3
Build date: 2015-03-25 14:21:05-0400

=== Xamarin.Android ===

Version: (Business Edition)
Android SDK: /Users/jatin66/Desktop/Backup/android-sdk-macosx
	Supported Android versions:
		1.6    (API level 4)
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Version: (Business Edition)

=== Build Information ===

Release ID: 508020007
Git revision: 067ed06873402cf780f8a0899bb332c2a1c0af22
Build date: 2015-03-27 14:17:13-04
Xamarin addins: 02510c4990dee3475c282b3182d588975a63ff07

=== Operating System ===

Mac OS X 10.10.0
Darwin Dalvik.local 14.0.0 Darwin Kernel Version 14.0.0
    Fri Sep 19 00:26:44 PDT 2014
    root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Comment 3 Jason Smith [MSFT] 2015-06-11 17:27:19 UTC
Should be fixed in 1.4.3 final
Comment 4 Parmendra Kumar 2015-06-18 14:33:39 UTC
I have checked this issue with xamarin.forms. and its working fine at my end.

Screencast: http://www.screencast.com/t/QQLh3qI4Gq

Hence closing this issue.

Environment info:

Xamarin Studio 5.9.3 (build 1)
Installation UUID: 1a096c6f-0678-402e-89b2-a2c10f7e80e4
Mono 4.0.1 ((detached/ed1d3ec)
GTK+ 2.24.23 (Raleigh theme)
Package version: 400010044
Xcode 6.2 (6776)
Build 6C131e
Xamarin.iOS : (Enterprise Edition)
Xamarin.Android : (Enterprise Edition)
Xamarin.Mac : (Enterprise Edition)
Mac OS X 10.9.4