summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Xaml
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2016-08-12 05:33:22 +0200
committerSamantha Houts <samantha@teamredwall.com>2016-08-11 20:33:22 -0700
commit31c2be29d5982338ae178d1b0f107e23e7749782 (patch)
tree490633dceae340277224a6f16cd72c675d356355 /Xamarin.Forms.Xaml
parentba29e59d20f4ae4b910b8576bc59af814ca4e151 (diff)
downloadxamarin-forms-31c2be29d5982338ae178d1b0f107e23e7749782.tar.gz
xamarin-forms-31c2be29d5982338ae178d1b0f107e23e7749782.tar.bz2
xamarin-forms-31c2be29d5982338ae178d1b0f107e23e7749782.zip
Fix mc ignorable (#298)
* [Xaml] when ignoring nodes, ignore children as well * [XamlC] ignore on xamlc too
Diffstat (limited to 'Xamarin.Forms.Xaml')
-rw-r--r--Xamarin.Forms.Xaml/ApplyPropertiesVisitor.cs2
-rw-r--r--Xamarin.Forms.Xaml/CreateValuesVisitor.cs5
2 files changed, 5 insertions, 2 deletions
diff --git a/Xamarin.Forms.Xaml/ApplyPropertiesVisitor.cs b/Xamarin.Forms.Xaml/ApplyPropertiesVisitor.cs
index 6d8792c4..cdcbe00d 100644
--- a/Xamarin.Forms.Xaml/ApplyPropertiesVisitor.cs
+++ b/Xamarin.Forms.Xaml/ApplyPropertiesVisitor.cs
@@ -9,7 +9,7 @@ using Xamarin.Forms.Xaml.Internals;
namespace Xamarin.Forms.Xaml
{
- internal class ApplyPropertiesVisitor : IXamlNodeVisitor
+ class ApplyPropertiesVisitor : IXamlNodeVisitor
{
public static readonly IList<XmlName> Skips = new List<XmlName>
{
diff --git a/Xamarin.Forms.Xaml/CreateValuesVisitor.cs b/Xamarin.Forms.Xaml/CreateValuesVisitor.cs
index 612b32f1..e52ae594 100644
--- a/Xamarin.Forms.Xaml/CreateValuesVisitor.cs
+++ b/Xamarin.Forms.Xaml/CreateValuesVisitor.cs
@@ -62,8 +62,11 @@ namespace Xamarin.Forms.Xaml
{
object value = null;
- if (node.SkipPrefix(node.NamespaceResolver.LookupPrefix(node.NamespaceURI)))
+ if (node.SkipPrefix(node.NamespaceResolver.LookupPrefix(node.NamespaceURI))) {
+ node.Properties.Clear();
+ node.CollectionItems.Clear();
return;
+ }
XamlParseException xpe;
var type = XamlParser.GetElementType(node.XmlType, node, Context.RootElement?.GetType().GetTypeInfo().Assembly,