summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Xaml
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2017-02-24 08:10:11 (GMT)
committerGitHub <noreply@github.com>2017-02-24 08:10:11 (GMT)
commit6d9fd894e4c940c5c2d16e4a4dcf59c2fa184642 (patch)
tree48831a65456dde1c61ace60b39fdf1b9330e621e /Xamarin.Forms.Xaml
parent81d6812dc9069b7c29727cf039465fbc244a94cc (diff)
downloadxamarin-forms-6d9fd894e4c940c5c2d16e4a4dcf59c2fa184642.zip
xamarin-forms-6d9fd894e4c940c5c2d16e4a4dcf59c2fa184642.tar.gz
xamarin-forms-6d9fd894e4c940c5c2d16e4a4dcf59c2fa184642.tar.bz2
[Xaml] decorate markup and value providers to speed up inflating (#770)
* [Xaml] decorate markup and value providers to speed up inflating * update docs * fix docs
Diffstat (limited to 'Xamarin.Forms.Xaml')
-rw-r--r--Xamarin.Forms.Xaml/MarkupExtensions/ArrayExtension.cs1
-rw-r--r--Xamarin.Forms.Xaml/MarkupExtensions/BindingExtension.cs1
-rw-r--r--Xamarin.Forms.Xaml/MarkupExtensions/NullExtension.cs3
-rw-r--r--Xamarin.Forms.Xaml/MarkupExtensions/TemplateBindingExtension.cs1
4 files changed, 5 insertions, 1 deletions
diff --git a/Xamarin.Forms.Xaml/MarkupExtensions/ArrayExtension.cs b/Xamarin.Forms.Xaml/MarkupExtensions/ArrayExtension.cs
index 9f59413..80c4f82 100644
--- a/Xamarin.Forms.Xaml/MarkupExtensions/ArrayExtension.cs
+++ b/Xamarin.Forms.Xaml/MarkupExtensions/ArrayExtension.cs
@@ -5,6 +5,7 @@ using System.Collections.Generic;
namespace Xamarin.Forms.Xaml
{
[ContentProperty("Items")]
+ [AcceptEmptyServiceProvider]
public class ArrayExtension : IMarkupExtension<Array>
{
public ArrayExtension()
diff --git a/Xamarin.Forms.Xaml/MarkupExtensions/BindingExtension.cs b/Xamarin.Forms.Xaml/MarkupExtensions/BindingExtension.cs
index df82771..d3d5a51 100644
--- a/Xamarin.Forms.Xaml/MarkupExtensions/BindingExtension.cs
+++ b/Xamarin.Forms.Xaml/MarkupExtensions/BindingExtension.cs
@@ -4,6 +4,7 @@ using Xamarin.Forms.Internals;
namespace Xamarin.Forms.Xaml
{
[ContentProperty("Path")]
+ [AcceptEmptyServiceProvider]
public sealed class BindingExtension : IMarkupExtension<BindingBase>
{
public BindingExtension()
diff --git a/Xamarin.Forms.Xaml/MarkupExtensions/NullExtension.cs b/Xamarin.Forms.Xaml/MarkupExtensions/NullExtension.cs
index 6bdab68..4ce40ae 100644
--- a/Xamarin.Forms.Xaml/MarkupExtensions/NullExtension.cs
+++ b/Xamarin.Forms.Xaml/MarkupExtensions/NullExtension.cs
@@ -3,6 +3,7 @@
namespace Xamarin.Forms.Xaml
{
[ProvideCompiled("Xamarin.Forms.Build.Tasks.NullExtension")]
+ [AcceptEmptyServiceProvider]
public class NullExtension : IMarkupExtension
{
public object ProvideValue(IServiceProvider serviceProvider)
@@ -10,4 +11,4 @@ namespace Xamarin.Forms.Xaml
return null;
}
}
-} \ No newline at end of file
+}
diff --git a/Xamarin.Forms.Xaml/MarkupExtensions/TemplateBindingExtension.cs b/Xamarin.Forms.Xaml/MarkupExtensions/TemplateBindingExtension.cs
index c14f9f9..cc0dfd7 100644
--- a/Xamarin.Forms.Xaml/MarkupExtensions/TemplateBindingExtension.cs
+++ b/Xamarin.Forms.Xaml/MarkupExtensions/TemplateBindingExtension.cs
@@ -3,6 +3,7 @@ using System;
namespace Xamarin.Forms.Xaml
{
[ContentProperty("Path")]
+ [AcceptEmptyServiceProvider]
public sealed class TemplateBindingExtension : IMarkupExtension<BindingBase>
{
public TemplateBindingExtension()