{
/// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty GaussianBlurViewProperty = BindableProperty.Create(nameof(BlurStrength), typeof(float), typeof(GaussianBlurView), default(float), propertyChanged: (bindable, oldValue, newValue) =>
+ public static readonly BindableProperty BlurStrengthProperty = BindableProperty.Create(nameof(BlurStrength), typeof(float), typeof(GaussianBlurView), default(float), propertyChanged: (bindable, oldValue, newValue) =>
{
var gaussianBlurView = (GaussianBlurView)bindable;
if (newValue != null)
{
get
{
- return (float)GetValue(GaussianBlurViewProperty);
+ return (float)GetValue(BlurStrengthProperty);
}
set
{
- SetValue(GaussianBlurViewProperty, value);
+ SetValue(BlurStrengthProperty, value);
NotifyPropertyChanged();
}
}
throw new ArgumentNullException(nameof(property));
}
+ object oldvalue = null;
if (null == property.DefaultValueCreator)
{
BindablePropertyContext context = GetOrCreateContext(property);
if (null != context)
{
+ oldvalue = context.Value;
context.Value = value;
}
}
+ else
+ {
+ oldvalue = property.DefaultValueCreator.Invoke(this);
+ }
- property.PropertyChanged?.Invoke(this, null, value);
+ property.PropertyChanged?.Invoke(this, oldvalue, value);
OnPropertyChanged(property.PropertyName);
OnPropertyChangedWithData(property);
using System.Xml;
using Tizen.NUI.Binding.Internals;
using Tizen.NUI.Xaml;
+using Tizen.NUI.StyleSheets;
namespace Tizen.NUI.Binding
{
var triggerBase = parent as TriggerBase;
if (triggerBase != null)
type = triggerBase.TargetType;
+ var xamlStyle = parent as IStyle;
+ if (xamlStyle != null)
+ type = xamlStyle.TargetType;
}
else if (parentValuesProvider.TargetObject is Trigger)
type = (parentValuesProvider.TargetObject as Trigger).TargetType;
return null;
if (value.Contains(":"))
{
- Console.WriteLine(null, "Can't resolve properties with xml namespace prefix.");
+ Console.WriteLine("Can't resolve properties with xml namespace prefix.");
return null;
}
string[] parts = value.Split('.');
if (parts.Length != 2)
{
- Console.WriteLine(null, $"Can't resolve {value}. Accepted syntax is Type.PropertyName.");
+ Console.WriteLine($"Can't resolve {value}. Accepted syntax is Type.PropertyName.");
return null;
}
Type type = Type.GetType("Tizen.NUI." + parts[0]);