maui-linux/Xamarin.Forms.Core/BindingBaseExtensions.cs

17 строки
427 B
C#
Исходник Обычный вид История

2016-03-22 23:02:25 +03:00
using System;
namespace Xamarin.Forms
{
internal static class BindingBaseExtensions
{
internal static BindingMode GetRealizedMode(this BindingBase self, BindableProperty property)
{
if (self == null)
throw new ArgumentNullException("self");
if (property == null)
throw new ArgumentNullException("property");
return self.Mode != BindingMode.Default ? self.Mode : property.DefaultBindingMode;
}
}
}