[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_View_Property_ACCESSIBILITY_ATTRIBUTES_get")]
public static extern int AccessibilityAttributesGet();
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_View_Property_ACCESSIBILITY_ANIMATED_get")]
- public static extern int AccessibilityAnimatedGet();
}
}
}
FlagSetter(ref states, AccessibilityStates.Highlighted, this.IsHighlighted);
FlagSetter(ref states, AccessibilityStates.Enabled, this.State != States.Disabled);
FlagSetter(ref states, AccessibilityStates.Sensitive, this.Sensitive);
- FlagSetter(ref states, AccessibilityStates.Animated, this.AccessibilityAnimated);
FlagSetter(ref states, AccessibilityStates.Visible, true);
FlagSetter(ref states, AccessibilityStates.Showing, this.Visibility);
FlagSetter(ref states, AccessibilityStates.Defunct, !this.IsOnWindow);
}
/// <summary>
- /// Gets or sets whether the view is animated for accessibility or not.
- /// </summary>
- /// <remarks>
- /// For views, which intend to block notification of theirs position or size change to AT-SPI2, this value should be set as true.
- /// Otherwise it is set to false by default and the object position or size change is notified to AT-SPI2.
- /// </remarks>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public bool AccessibilityAnimated
- {
- get
- {
- return (bool)GetValue(AccessibilityAnimatedProperty);
- }
- set
- {
- SetValue(AccessibilityAnimatedProperty, value);
- NotifyPropertyChanged();
- }
- }
-
- /// <summary>
/// Gets or sets a value that allows the automation framework to find and interact with this element.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
return temp;
});
- /// <summary>
- /// AccessibilityAnimatedProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty AccessibilityAnimatedProperty = BindableProperty.Create(nameof(AccessibilityAnimated), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
- {
- var view = (View)bindable;
- if (newValue != null)
- {
- Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityAnimated, new Tizen.NUI.PropertyValue((bool)newValue));
- }
- },
- defaultValueCreator: (bindable) =>
- {
- var view = (View)bindable;
- bool temp = false;
- Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityAnimated).Get(out temp);
- return temp;
- });
-
private void SetBackgroundImage(string value)
{
if (string.IsNullOrEmpty(value))
internal static readonly int AccessibilityRole = Interop.ViewProperty.AccessibilityRoleGet();
internal static readonly int AccessibilityHighlightable = Interop.ViewProperty.AccessibilityHighlightableGet();
internal static readonly int AccessibilityAttributes = Interop.ViewProperty.AccessibilityAttributesGet();
- internal static readonly int AccessibilityAnimated = Interop.ViewProperty.AccessibilityAnimatedGet();
}
}
}