From c7292114f742fa90b7dd7ffec8498cb1df6acd3a Mon Sep 17 00:00:00 2001 From: cm4ker Date: Fri, 5 Oct 2018 16:20:56 +0600 Subject: [PATCH] Collection assign handling like a system.xaml --- .../Portable.Xaml/XamlWriterInternalBase.cs | 2 +- src/Test/System.Xaml/TestedTypes.cs | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/Portable.Xaml/Portable.Xaml/XamlWriterInternalBase.cs b/src/Portable.Xaml/Portable.Xaml/XamlWriterInternalBase.cs index e25f414..a868a3f 100644 --- a/src/Portable.Xaml/Portable.Xaml/XamlWriterInternalBase.cs +++ b/src/Portable.Xaml/Portable.Xaml/XamlWriterInternalBase.cs @@ -79,7 +79,7 @@ namespace Portable.Xaml public const int IsGetObject = 1 << 0; public const int IsInstantiated = 1 << 1; public const int IsXamlWriterCreated = 1 << 2; - public const int IsValueProvidedByParent = 1 << 3; + public const int IsValueProvidedByParent = 1 << 3; } public bool IsGetObject diff --git a/src/Test/System.Xaml/TestedTypes.cs b/src/Test/System.Xaml/TestedTypes.cs index 1b6fb61..bd347ed 100644 --- a/src/Test/System.Xaml/TestedTypes.cs +++ b/src/Test/System.Xaml/TestedTypes.cs @@ -438,6 +438,20 @@ namespace MonoTests.Portable.Xaml } } + [ContentProperty(nameof(Items))] + public class CollectionAssignnmentTest + { + List items = new List(); + + public bool Assigned { get; private set; } + + public List Items + { + get => items; + set { items = value; Assigned = true; } + } + } + [RuntimeNameProperty("TheName")] public class TestClass5WithName : TestClass5 {