static private object GetConvertedValue(Type valueType, object value, Func<MemberInfo> minfoRetriever, XamlServiceProvider serviceProvider)
{
- try
- {
- object convertedValue = value.ConvertTo(valueType, minfoRetriever, serviceProvider);
-
- if (convertedValue != null && !valueType.IsInstanceOfType(convertedValue))
- {
- return null;
- }
+ object convertedValue = value.ConvertTo(valueType, minfoRetriever, serviceProvider);
- return convertedValue;
- }
- catch
+ if (convertedValue != null && !valueType.IsInstanceOfType(convertedValue))
{
- return null;
+ convertedValue = null;
}
+
+ return convertedValue;
}
static bool TryGetProperty(object element, string localName, out object value, HydrationContext context, out Exception exception, out object targetProperty)
private static VisualStateGroupList visualStateGroups;
public static readonly BindableProperty VisualStateGroupsProperty =
- BindableProperty.CreateAttached("VisualStateGroups", typeof(VisualStateGroupList), typeof(/*VisualElement*/BaseHandle),
+ BindableProperty.CreateAttached("VisualStateGroups", typeof(VisualStateGroupList), typeof(BaseHandle),
defaultValue: null, propertyChanged: VisualStateGroupsPropertyChanged,
defaultValueCreator: (BindableObject obj)=>
{
static void VisualStateGroupsPropertyChanged(BindableObject bindable, object oldValue, object newValue)
{
- GoToState((/*VisualElement*/BaseHandle)bindable, CommonStates.Normal);
+ GoToState((BaseHandle)bindable, CommonStates.Normal);
}
- public static IList<VisualStateGroup> GetVisualStateGroups(/*VisualElement*/BaseHandle visualElement)
+ public static IList<VisualStateGroup> GetVisualStateGroups(BaseHandle visualElement)
{
return (IList<VisualStateGroup>)visualElement.GetValue(VisualStateGroupsProperty);
}
- public static void SetVisualStateGroups(/*VisualElement*/BaseHandle visualElement, VisualStateGroupList value)
+ public static void SetVisualStateGroups(BaseHandle visualElement, VisualStateGroupList value)
{
visualElement.SetValue(VisualStateGroupsProperty, value);
}
- public static bool GoToState(/*VisualElement*/BaseHandle visualElement, string name)
+ public static bool GoToState(BaseHandle visualElement, string name)
{
if (!visualElement.IsSet(VisualStateGroupsProperty))
{
return false;
}
- public static bool HasVisualStateGroups(this /*VisualElement*/BaseHandle element)
+ public static bool HasVisualStateGroups(this BaseHandle element)
{
return element.IsSet(VisualStateGroupsProperty);
}
namespace Tizen.NUI.Binding
{
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
[ContentProperty("Setters")]
public sealed class XamlStyle : IStyle
IList<TriggerBase> _triggers;
- /// <since_tizen> 6 </since_tizen>
- /// 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 XamlStyle([TypeConverter(typeof(TypeTypeConverter))][Parameter("TargetType")] Type targetType)
{
Setters = new List<Setter>();
}
- /// <since_tizen> 6 </since_tizen>
- /// 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 bool ApplyToDerivedTypes { get; set; }
- /// <since_tizen> 6 </since_tizen>
- /// 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 XamlStyle BasedOn
{
}
}
- /// <since_tizen> 6 </since_tizen>
- /// 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 string BaseResourceKey
{
get { return _behaviors ?? (_behaviors = new AttachedCollection<Behavior>()); }
}
- /// 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 bool CanCascade { get; set; }
- /// 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 string Class { get; set; }
- /// 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 IList<Setter> Setters { get; }
- /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public IList<TriggerBase> Triggers
{
ApplyCore(bindable, BasedOn ?? GetBasedOnResource(bindable));
}
- /// <since_tizen> 6 </since_tizen>
- /// 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 Type TargetType { get; }
static void OnBasedOnResourceChanged(BindableObject bindable, object oldValue, object newValue)
{
- // Style style = (bindable as /*VisualElement*/BaseHandle).Style;
+ // Style style = (bindable as BaseHandle).Style;
// if (style == null)
// return;
// style.UnApplyCore(bindable, (Style)oldValue);