Bug 24859 - BorderWidth for Button is throwing Exception in Forms
Summary: BorderWidth for Button is throwing Exception in Forms
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.2.3
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-11-26 11:16 UTC by Anubhav Ranjan
Modified: 2016-03-25 18:42 UTC (History)
6 users (show)

Tags:
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:
Status:
RESOLVED FIXED

Description Anubhav Ranjan 2014-11-26 11:16:22 UTC
I am trying to set the BorderWidth for a Button but it throws exception at runtime.

Here is the code used:
Children = {
    new Button {
    Text = "Do This Later",
    TextColor = Color.White,
    BackgroundColor = Color.FromHex("77D065"),
    BorderWidth = 3
},

And the exception at runtime:
System.MissingMethodException: Method not found: 'Xamarin.Forms.Button.set_BorderWidth'.

The project can be downloaded from here
https://db.tt/qabQdiuh 

##Version Information:

Microsoft Visual Studio Ultimate 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Ultimate

Architecture and Modeling Tools   06181-004-0451031-02364
Microsoft Architecture and Modeling Tools
    
UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

Team Explorer for Visual Studio 2013   06181-004-0451031-02364
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013   06181-004-0451031-02364
Microsoft Visual Basic 2013

Visual C# 2013   06181-004-0451031-02364
Microsoft Visual C# 2013

Visual C++ 2013   06181-004-0451031-02364
Microsoft Visual C++ 2013

Visual F# 2013   06181-004-0451031-02364
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker   06181-004-0451031-02364
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.

Windows Phone SDK 8.0 - ENU   06181-004-0451031-02364
Windows Phone SDK 8.0 - ENU

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

ASP.NET and Web Tools   12.4.51016.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 Websites
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.21010.0
For additional information, visit http://www.asp.net/

Bing Developer Assistant Beta   1.0
Bing Developer Assistant puts millions of code snippets and code sample projects at your fingertips while you are coding in Visual Studio.

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

Infragistics Version Utility   1.0
This utility lets you set the Infragistics version that a specific project is using.

Infragistics.VSExtension   1.0
Infragistics Visual Studio Extension (AddIn) adds scheduled check for update functionality to your Visual Studio IDE. It also provides some fast shortcuts to infragistics products and online resources.

JetBrains ReSharper 8.2.2   Full Edition build 8.2.2000.5102 on 2014-08-30T12:42:46
JetBrains ReSharper 8.2.2 package for Microsoft Visual Studio. For more information about ReSharper, visit http://www.jetbrains.com/resharper/. Copyright © 2003–2014 JetBrains, Inc.

Microsoft Advertising SDK for Windows Phone   
Microsoft Advertising SDK for Windows Phone
Build 

Microsoft Azure Mobile Services Tools   1.3
Microsoft Azure Mobile Services Tools

Microsoft Azure Tools   2.4
Microsoft Azure Tools for Microsoft Visual Studio 2013 - v2.4.20730.1601

MySQL for Visual Studio   1.2.3
Data design and management tools for MySQL.  Copyright © 2007-2014 Oracle, Inc.

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

OneCodeQuickLaunchPackage   1.0
Information about my package

PowerShell Tools   1.3
Provides file classification services using PowerShell

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

SAPReferenceManager   1.0
Manages References to Shared Projects

SQL Server Data Tools   12.0.41012.0
Microsoft SQL Server Data Tools

Telerik Data Access   2014.2.711.1
Telerik Data Access Copyright © 1996–2014 Telerik AD
Telerik Data Access is the ultimate data access layer solution for Microsoft .NET database applications.
www.telerik.com/orm

Telerik Windows 8 XAML VSExtensions   2014.3.820.0
Telerik UI for Windows 8 XAML VSExtensions

Telerik Windows Phone VSExtensions   2014.3.820.0
Telerik UI for Windows Phone VSExtensions

VSProject.Extension   1.0
Information about my package

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.

Xamarin   3.8.150.0 (10cfd178d55287f09c85f5a1e604dfe20889a40f)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   4.20.0.28 (ba9bbbdd44cfdc4bf485e8885bd2ad24fba525f7)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   8.4.0.0 (840a925103a0bf4a856507f13d5eaee3c1579c2f)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 1 asimk 2014-12-16 09:02:53 UTC
As per the bug description we have checked and app runs successfully for iOS and android. (checked with simulator). Here is the screencast for this:
http://www.screencast.com/t/D9fJNL7wSEe

Please review the screencast and let us know what additional steps we need to follow to reproductive this issue.

Environment: 
VS 2013 + XVS 3.9.185.0 + XI 8.6.0.32
Comment 2 Oskar Janik 2015-01-13 19:27:55 UTC
You probable had an old version of Xamarin.Forms in your [Project_Name].iOS in Packages.

I had the same problem. I've updated Xamarin.Forms' Package only in the main(shared) PCL app without updating it in the "[Project_Name].iOS/Packages"
Comment 3 Jason Smith [MSFT] 2016-03-25 18:41:58 UTC
Thank you for taking the time to submit this report. After reviewing the description of this bug, we no longer believe it affects the current version of Xamarin.Forms. If you are still experiencing the issue after updating your packages, please reopen this report with an attached reproduction.
 
For your convenience, we have created some reproduction best practices viewable here: https://gist.github.com/jassmith/92405c300e54a01dcc6d

Warm regards,
Xamarin Forms Team
Comment 4 Jason Smith [MSFT] 2016-03-25 18:42:26 UTC
Thank you for taking the time to submit this report. After reviewing the description of this bug, we no longer believe it affects the current version of Xamarin.Forms. If you are still experiencing the issue after updating your packages, please reopen this report with an attached reproduction.
 
For your convenience, we have created some reproduction best practices viewable here: https://gist.github.com/jassmith/92405c300e54a01dcc6d

Warm regards,
Xamarin Forms Team