Collection assign handling like a system.xaml
This commit is contained in:
Родитель
ce1f3b7af6
Коммит
c7292114f7
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче