Bug 39321 - [Xamarin.Forms] Android styles not working on Scroll View with custom rander
Summary: [Xamarin.Forms] Android styles not working on Scroll View with custom rander
Status: RESOLVED INVALID
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.0.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jason Smith [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2016-03-03 15:21 UTC by Ram Bachkheti
Modified: 2017-06-19 21:22 UTC (History)
5 users (show)

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


Attachments
IDE logs (18.65 KB, application/x-zip-compressed)
2016-03-03 15:23 UTC, Ram Bachkheti
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 Ram Bachkheti 2016-03-03 15:21:46 UTC
I am trying to customize Xamarin.Forms Scroll View using custom renders but I am getting an exception while try to run that project. I am getting this issue with android project. I haven't checked the same with iOS/Window Phone.

Steps to reproduce:
1. Use the attached code to reproduce this issue.
 https://gist.github.com/RamBachkheti/8b841951aae61b5cbf19

Build Output: https://gist.github.com/RamBachkheti/f1078cbbb60cf99cc48d


Build Information:

Xamarin.Forms: 2.1.0.6524

Microsoft Visual Studio Professional 2013
Version 12.0.40629.00 Update 5
Microsoft .NET Framework
Version 4.5.50938

Installed Version: Professional

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

Team Explorer for Visual Studio 2013   06177-004-0444002-02050
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013   06177-004-0444002-02050
Microsoft Visual Basic 2013

Visual C# 2013   06177-004-0444002-02050
Microsoft Visual C# 2013

Visual C++ 2013   06177-004-0444002-02050
Microsoft Visual C++ 2013

Visual F# 2013   06177-004-0444002-02050
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker   06177-004-0444002-02050
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Application Insights Tools for Visual Studio Package   1.0
Application Insights Tools for Visual Studio

ASP.NET and Web Tools   12.5.60612.0
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Microsoft Azure Web Apps
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Microsoft Azure

ASP.NET Web Frameworks and Tools 2012.2   4.1.21001.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.30612.0
For additional information, visit http://www.asp.net/

Common Azure Tools   1.4
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

NuGet Package Manager   2.8.60610.756
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

Office Developer Tools for Visual Studio 2013 ENU   12.0.30626
Microsoft Office Developer Tools for Visual Studio 2013 ENU

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   12.0.41012.0
Microsoft SQL Server Data Tools

Windows Phone 8.1 SDK Integration   1.0
This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin   4.0.1.96 (dcea9c1)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   6.0.1.10 (e98e962)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   9.4.1.24 (47eb74b)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 1 Ram Bachkheti 2016-03-03 15:23:23 UTC
Created attachment 15234 [details]
IDE logs
Comment 2 Ram Bachkheti 2016-03-03 15:29:01 UTC
Please update:   
>string recordTable = res.GetString(Resource.Style.scrollbar_style);
With 
>string recordTable = res.GetString(Resource.Style.scrollbar_shape_style);
Comment 3 Jason Smith [MSFT] 2016-03-10 19:45:45 UTC
((Xamarin.Forms.ScrollView)e.NewElement).StyleId = recordTable;

That line of code does nothing. I don't know what you are trying to do here really but that wont apply any style at all.
Comment 4 Chris King 2017-06-19 17:22:25 UTC
Assigned to you as you were last to request additional info.
Comment 5 Samantha Houts [MSFT] 2017-06-19 21:22:06 UTC
Closing this report as invalid per Comment 3. If you have more information to help us isolate an issue, please let us know. Thanks!