summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2017-02-24 09:10:11 +0100
committerGitHub <noreply@github.com>2017-02-24 09:10:11 +0100
commit6d9fd894e4c940c5c2d16e4a4dcf59c2fa184642 (patch)
tree48831a65456dde1c61ace60b39fdf1b9330e621e /Xamarin.Forms.Core
parent81d6812dc9069b7c29727cf039465fbc244a94cc (diff)
downloadxamarin-forms-6d9fd894e4c940c5c2d16e4a4dcf59c2fa184642.tar.gz
xamarin-forms-6d9fd894e4c940c5c2d16e4a4dcf59c2fa184642.tar.bz2
xamarin-forms-6d9fd894e4c940c5c2d16e4a4dcf59c2fa184642.zip
[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.Core')
-rw-r--r--Xamarin.Forms.Core/Interactivity/BindingCondition.cs1
-rw-r--r--Xamarin.Forms.Core/Interactivity/DataTrigger.cs1
2 files changed, 2 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core/Interactivity/BindingCondition.cs b/Xamarin.Forms.Core/Interactivity/BindingCondition.cs
index ccf55e58..0ff9e8fe 100644
--- a/Xamarin.Forms.Core/Interactivity/BindingCondition.cs
+++ b/Xamarin.Forms.Core/Interactivity/BindingCondition.cs
@@ -4,6 +4,7 @@ using Xamarin.Forms.Xaml;
namespace Xamarin.Forms
{
[ProvideCompiled("Xamarin.Forms.Core.XamlC.PassthroughValueProvider")]
+ [AcceptEmptyServiceProvider]
public sealed class BindingCondition : Condition, IValueProvider
{
readonly BindableProperty _boundProperty;
diff --git a/Xamarin.Forms.Core/Interactivity/DataTrigger.cs b/Xamarin.Forms.Core/Interactivity/DataTrigger.cs
index d90cf44e..0eb45be5 100644
--- a/Xamarin.Forms.Core/Interactivity/DataTrigger.cs
+++ b/Xamarin.Forms.Core/Interactivity/DataTrigger.cs
@@ -6,6 +6,7 @@ namespace Xamarin.Forms
{
[ContentProperty("Setters")]
[ProvideCompiled("Xamarin.Forms.Core.XamlC.PassthroughValueProvider")]
+ [AcceptEmptyServiceProvider]
public sealed class DataTrigger : TriggerBase, IValueProvider
{
public DataTrigger([TypeConverter(typeof(TypeTypeConverter))] [Parameter("TargetType")] Type targetType) : base(new BindingCondition(), targetType)