Bug 37206 - [Android] Frame control loses corners
Summary: [Android] Frame control loses corners
Status: RESOLVED DUPLICATE of bug 27460
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.0.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-12-21 18:09 UTC by Anubhav Ranjan
Modified: 2017-09-07 14:00 UTC (History)
7 users (show)

Tags: ac
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 Anubhav Ranjan 2015-12-21 18:09:01 UTC
If you set the background color of a Xamarin forms frame, the visual appearance of it no longer has rounded corners.

Furthermore, if you change the OutlineColor property, the control isn't updated.

I want to put a border around the active frame in my application, so I have a ViewModel property bound to the frame's OutlineColor but even though I change it and raise propertychanged the color doesn't update.

I also really need to set the width of the outline itself. I tried making a custom renderer, but the FrameRenderer base class doesn't have Control property or anything obvious on how to do it.



#Version Information:
Microsoft Visual Studio Enterprise 2015
Version 14.0.24720.00 Update 1
Microsoft .NET Framework
Version 4.6.01055

Installed Version: Enterprise

Architecture and Modeling Tools   00322-80000-00000-AA096
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.

Visual Basic 2015   00322-80000-00000-AA096
Microsoft Visual Basic 2015

Visual C# 2015   00322-80000-00000-AA096
Microsoft Visual C# 2015

Visual C++ 2015   00322-80000-00000-AA096
Microsoft Visual C++ 2015

Windows Phone SDK 8.0 - ENU   00322-80000-00000-AA096
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 2015 (RC1 Update 1)   14.1.11120.0
ASP.NET and Web Tools 2015 (RC1 Update 1)

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

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

Azure App Service Tools v2.8.1   14.0.11123.0
Azure App Service Tools v2.8.1

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

DataFactoryProject   1.0
Microsoft Data Factory Package

GitHub.VisualStudio   1.0
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

JetBrains ReSharper Ultimate 10.0.1   Build 104.0.20151114.160203
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2015 JetBrains, Inc.

Microsoft Azure Data Factory Node Node   1.0
Azure Data Factory extension for Visual Studio Server Explorer.

Microsoft Azure HDInsight HQL Service   2.0.2900.0
Language service for Hive query

Microsoft Azure HDInsight Tools for Visual Studio   2.0.2900.0
An integrated development environment for HDInsight application development.

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

Microsoft Azure Tools   2.7
Microsoft Azure Tools for Microsoft Visual Studio 2015 - v2.7.30728.1602

Microsoft Azure Tools   2.8
Microsoft Azure Tools for Microsoft Visual Studio 2015 - v2.8.31121.1

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

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

SQL Server Data Tools   14.0.50730.0
Microsoft SQL Server Data Tools

TypeScript for Microsoft Visual Studio

Visual Studio Tools for Universal Windows Apps   14.0.24720.00
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Xamarin (1390b70)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

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

Xamarin.iOS (ea30b32)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 2 Chris King 2017-01-05 01:08:50 UTC
The outline changes color on the latest version but the rounded corners do still go square.
Comment 3 John Hardman 2017-03-22 11:05:13 UTC

As per forum thread at https://forums.xamarin.com/discussion/comment/261168#Comment_261168, the OutlineColor in the following code is ignored on Android, building with Xamarin.Forms and using FormsAppCompatActivity.

From the earlier description of bug 37206, I suspect this is the same problem, but let me know if you want me to raise a separate bug.

            Frame frame = new Frame
                OutlineColor = Color.Blue,
                BackgroundColor = Color.White,
                Padding = 10,
                Margin = 5,
                HorizontalOptions = LayoutOptions.CenterAndExpand,
                Content = new Label
                    Text = "Health science",
                    TextColor = Color.Black,
                    BackgroundColor = Color.White,
                    HorizontalTextAlignment = TextAlignment.Center,
                    HorizontalOptions = LayoutOptions.CenterAndExpand,
Comment 4 John Hardman 2017-03-22 11:20:08 UTC
It seems that using FormsAppCompatActivity makes no difference.
Comment 5 NMackay 2017-03-22 11:21:53 UTC
I can confirm it doesn't work in 2.3.4 pre5.

Tested on a Samsung S5 running API21. It's in in iOS, UWP and API23.
Comment 6 David Ortinau [MSFT] 2017-09-07 14:00:35 UTC
Confirmed the corners are fine, but the outline color is not respected. That issue is a duplicate of 27460

*** This bug has been marked as a duplicate of bug 27460 ***