Bug 22178 - BoxView HeightProperty doesn't seem to bind correctly
Summary: BoxView HeightProperty doesn't seem to bind correctly
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.2.2
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2014-08-18 15:26 UTC by Jon Douglas [MSFT]
Modified: 2016-03-16 12:21 UTC (History)
4 users (show)

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

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 Jon Douglas [MSFT] 2014-08-18 15:26:07 UTC
It seems that the property "HeightProperty" on BoxView isn't working correctly.



Notice AnimationView / AnimationViewModel gets new values, but the .SetBinding doesn't seem to change the actual height of the BoxView. I had another person look over this and it looks good to us.
Comment 1 Rajneesh Kumar 2014-08-26 05:32:07 UTC
I have checked this issue and not able to reproduce this. I try to reproduce this with the "SimpleApplicationForms" sample provided link in bug description.

Here are my observation:
In the "SimpleApplicationForms" sample project the BoxView property is set HeightRequest=0, and that is working properly. I again changed it to HeightRequest=50, and its showing red color box, with giving height and width. I also observed that when I changed WidthRequest=50, but I does,t seem to change the width of BoxView.

I observed that the "HeightRequest" property is working properly and "WidthRequest"  property is not working properly.

Please let me know if I am missing anything. Here is the screencast for the same.

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

Environment Info:

Microsoft Visual Studio Professional 2013
Version 12.0.30723.00 Update 3
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Professional

LightSwitch for Visual Studio 2013   06177-004-0444002-02685
Microsoft LightSwitch for Visual Studio 2013

Xamarin (0b2a123923812a88ed3091909478dbe9e0111f00)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android
Comment 2 Jon Douglas [MSFT] 2014-08-26 12:11:00 UTC
I believe this issue had more to deal with the actual binding of the BoxView rather than a hard coded Height/Width. There is a timer that increases the BoxView's dimensions each second in which the binding doesn't seem to work appropriately.
Comment 3 Jason Smith [MSFT] 2016-03-16 12:21:37 UTC
The height property is intentionally read only