From a82db343e1e2cefa593f264b07bbca97217700fd Mon Sep 17 00:00:00 2001 From: Andrei Nitescu Date: Fri, 18 Jan 2019 15:32:36 +0200 Subject: [PATCH] Changed Span default binding to OneWay (#4850) --- Xamarin.Forms.Core/Span.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Xamarin.Forms.Core/Span.cs b/Xamarin.Forms.Core/Span.cs index 955cc43cc..6962b083c 100644 --- a/Xamarin.Forms.Core/Span.cs +++ b/Xamarin.Forms.Core/Span.cs @@ -15,7 +15,7 @@ namespace Xamarin.Forms } public static readonly BindableProperty StyleProperty = BindableProperty.Create(nameof(Style), typeof(Style), typeof(Span), default(Style), - propertyChanged: (bindable, oldvalue, newvalue) => ((Span)bindable)._mergedStyle.Style = (Style)newvalue, defaultBindingMode: BindingMode.OneTime); + propertyChanged: (bindable, oldvalue, newvalue) => ((Span)bindable)._mergedStyle.Style = (Style)newvalue, defaultBindingMode: BindingMode.OneWay); public static readonly BindableProperty TextDecorationsProperty = DecorableTextElement.TextDecorationsProperty; @@ -26,7 +26,7 @@ namespace Xamarin.Forms } public static readonly BindableProperty BackgroundColorProperty - = BindableProperty.Create(nameof(BackgroundColor), typeof(Color), typeof(Span), default(Color), defaultBindingMode: BindingMode.OneTime); + = BindableProperty.Create(nameof(BackgroundColor), typeof(Color), typeof(Span), default(Color), defaultBindingMode: BindingMode.OneWay); public Color BackgroundColor { @@ -55,7 +55,7 @@ namespace Xamarin.Forms #pragma warning restore 618 public static readonly BindableProperty TextProperty - = BindableProperty.Create(nameof(Text), typeof(string), typeof(Span), "", defaultBindingMode: BindingMode.OneTime); + = BindableProperty.Create(nameof(Text), typeof(string), typeof(Span), "", defaultBindingMode: BindingMode.OneWay); public string Text {