[UWP] Inherit from Panel on WrapperControl (#1204)

* [UWP] Inherit from Panel on WrapperControl

* Fix typo
This commit is contained in:
Paul DiPietro 2017-10-18 10:56:24 -04:00 коммит произвёл Rui Marinho
Родитель afbdf4dbf1
Коммит 7164eb7b0d
3 изменённых файлов: 40 добавлений и 1 удалений

Просмотреть файл

@ -0,0 +1,38 @@
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.UITest;
using NUnit.Framework;
#endif
namespace Xamarin.Forms.Controls.Issues
{
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Bugzilla, 60056, "[UWP] ViewCell ignores margins of it's child", PlatformAffected.UWP)]
public class Bugzilla60056 : TestContentPage
{
protected override void Init()
{
Content = new ListView
{
ItemsSource = new string[] { "A", "B", "C" },
ItemTemplate = new DataTemplate(() =>
{
return new ViewCell
{
View = new StackLayout
{
Margin = 20,
Children =
{
new Label { Text = "I should be indented" },
new Button { Margin = 5, Text = "I should be further indented" }
}
}
};
})
};
}
}
}

Просмотреть файл

@ -222,6 +222,7 @@
<Compile Include="$(MSBuildThisFileDirectory)Bugzilla51427.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Bugzilla59248.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Bugzilla59580.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Bugzilla60056.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Bugzilla59863_0.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Bugzilla59863_1.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Bugzilla59863_2.cs" />

Просмотреть файл

@ -37,7 +37,7 @@ namespace Xamarin.Forms.Platform.WinRT
throw new NotSupportedException();
}
class WrapperControl : Canvas
class WrapperControl : Panel
{
readonly View _view;