Collection assign handling like a system.xaml

This commit is contained in:
cm4ker 2018-10-05 16:20:56 +06:00
Родитель ce1f3b7af6
Коммит c7292114f7
2 изменённых файлов: 15 добавлений и 1 удалений

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

@ -79,7 +79,7 @@ namespace Portable.Xaml
public const int IsGetObject = 1 << 0; public const int IsGetObject = 1 << 0;
public const int IsInstantiated = 1 << 1; public const int IsInstantiated = 1 << 1;
public const int IsXamlWriterCreated = 1 << 2; public const int IsXamlWriterCreated = 1 << 2;
public const int IsValueProvidedByParent = 1 << 3; public const int IsValueProvidedByParent = 1 << 3;
} }
public bool IsGetObject public bool IsGetObject

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

@ -438,6 +438,20 @@ namespace MonoTests.Portable.Xaml
} }
} }
[ContentProperty(nameof(Items))]
public class CollectionAssignnmentTest
{
List<TestClass4> items = new List<TestClass4>();
public bool Assigned { get; private set; }
public List<TestClass4> Items
{
get => items;
set { items = value; Assigned = true; }
}
}
[RuntimeNameProperty("TheName")] [RuntimeNameProperty("TheName")]
public class TestClass5WithName : TestClass5 public class TestClass5WithName : TestClass5
{ {