Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
[Controls] Add repo case for #5172
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarinho committed Feb 13, 2019
1 parent f4e6751 commit 543da8a
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
@@ -0,0 +1,60 @@
using System;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;

#if UITEST
using Xamarin.Forms.Core.UITests;
using Xamarin.UITest;
using NUnit.Framework;
#endif

namespace Xamarin.Forms.Controls.Issues
{
#if UITEST
[Category(UITestCategories.ManualReview)]
#endif
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Github, 5172, "ImageCell does not load image from URI - Android", PlatformAffected.Android)]
public class Issue5172 : TestContentPage // or TestMasterDetailPage, etc ...
{
protected override void Init()
{
Label header = new Label
{
Text = "Please make sure a image is shown in the ImageCell bellow",
FontSize = Device.GetNamedSize(NamedSize.Large, typeof(Label)),
HorizontalOptions = LayoutOptions.Center
};

TableView tableView = new TableView
{
Intent = TableIntent.Form,
Root = new TableRoot
{
new TableSection
{
new ImageCell
{
// Some differences with loading images in initial release.
ImageSource = ImageSource.FromUri(new Uri("https://i0.wp.com/www.thedudes.com.br/wp-content/uploads/2018/06/Vitrine-Perfil-dos-Dudes-04.png")),
Text = "This is an ImageCell",
Detail = "This is some detail text",
}
}
}
};

Padding = new Thickness(10, 20, 10, 5);

Content = new StackLayout
{
Children =
{
header,
tableView
}
};
}

}
}
Expand Up @@ -868,6 +868,7 @@
<Compile Include="$(MSBuildThisFileDirectory)Issue3622.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Issue4138.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Issue4314.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Issue5172.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="$(MSBuildThisFileDirectory)Bugzilla22229.xaml">
Expand Down

0 comments on commit 543da8a

Please sign in to comment.