summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Xaml/RegisterXNamesVisitor.cs
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2017-01-25 14:47:27 +0100
committerGitHub <noreply@github.com>2017-01-25 14:47:27 +0100
commitf30aa8ae2c54172df237a80dfff7a6eb0c679195 (patch)
treec0c0f3e0a9ed58972cf3a4277c29ef2e3da2dd1c /Xamarin.Forms.Xaml/RegisterXNamesVisitor.cs
parentebb24b7edd2b297f259eadfa4686e03c96504f1d (diff)
downloadxamarin-forms-f30aa8ae2c54172df237a80dfff7a6eb0c679195.tar.gz
xamarin-forms-f30aa8ae2c54172df237a80dfff7a6eb0c679195.tar.bz2
xamarin-forms-f30aa8ae2c54172df237a80dfff7a6eb0c679195.zip
[Xaml[C]] Do not instantiate DataTemplate Content at parsing time (#683)
* [Xaml] rename VisitChildrenFirst * [Xaml] rework SkipChildren in XamlNode * [Xaml] fix 45179 * fix
Diffstat (limited to 'Xamarin.Forms.Xaml/RegisterXNamesVisitor.cs')
-rw-r--r--Xamarin.Forms.Xaml/RegisterXNamesVisitor.cs18
1 files changed, 4 insertions, 14 deletions
diff --git a/Xamarin.Forms.Xaml/RegisterXNamesVisitor.cs b/Xamarin.Forms.Xaml/RegisterXNamesVisitor.cs
index a7da3b98..5ee3bc3e 100644
--- a/Xamarin.Forms.Xaml/RegisterXNamesVisitor.cs
+++ b/Xamarin.Forms.Xaml/RegisterXNamesVisitor.cs
@@ -12,20 +12,10 @@ namespace Xamarin.Forms.Xaml
Dictionary<INode, object> Values { get; }
- public bool VisitChildrenFirst
- {
- get { return false; }
- }
-
- public bool StopOnDataTemplate
- {
- get { return true; }
- }
-
- public bool StopOnResourceDictionary
- {
- get { return false; }
- }
+ public TreeVisitingMode VisitingMode => TreeVisitingMode.TopDown;
+ public bool StopOnDataTemplate => true;
+ public bool StopOnResourceDictionary => false;
+ public bool VisitNodeOnDataTemplate => false;
public void Visit(ValueNode node, INode parentNode)
{