зеркало из https://github.com/DeGsoft/maui-linux.git
[UWP] Inherit from Panel on WrapperControl (#1204)
* [UWP] Inherit from Panel on WrapperControl * Fix typo
This commit is contained in:
Родитель
afbdf4dbf1
Коммит
7164eb7b0d
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче