2 * Copyright(c) 2021 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 using System.ComponentModel;
20 using System.Runtime.InteropServices;
23 namespace Tizen.NUI.BaseComponents
26 /// View is the base class for all views.
28 /// <since_tizen> 3 </since_tizen>
29 public partial class View
32 /// Gets or sets accessibility name.
34 [EditorBrowsable(EditorBrowsableState.Never)]
35 public string AccessibilityName
39 return (string)GetValue(AccessibilityNameProperty);
43 SetValue(AccessibilityNameProperty, value);
44 NotifyPropertyChanged();
49 /// Gets or sets accessibility description.
51 [EditorBrowsable(EditorBrowsableState.Never)]
52 public string AccessibilityDescription
56 return (string)GetValue(AccessibilityDescriptionProperty);
60 SetValue(AccessibilityDescriptionProperty, value);
61 NotifyPropertyChanged();
66 /// Gets or sets accessibility translation domain.
68 [EditorBrowsable(EditorBrowsableState.Never)]
69 public string AccessibilityTranslationDomain
73 return (string)GetValue(AccessibilityTranslationDomainProperty);
77 SetValue(AccessibilityTranslationDomainProperty, value);
78 NotifyPropertyChanged();
83 /// Gets or sets accessibility role.
85 [EditorBrowsable(EditorBrowsableState.Never)]
86 public Role AccessibilityRole
90 return (Role)GetValue(AccessibilityRoleProperty);
94 SetValue(AccessibilityRoleProperty, value);
95 NotifyPropertyChanged();
100 /// Gets or sets whether the view is highlightable for accessibility or not.
103 /// For views, which intend to receive accessibility highlight focus, this value should be set as true.
104 /// Otherwise it is set to false by default and the object is omitted in AT-SPI2 navigation.
106 [EditorBrowsable(EditorBrowsableState.Never)]
107 public bool AccessibilityHighlightable
111 return (bool)GetValue(AccessibilityHighlightableProperty);
115 SetValue(AccessibilityHighlightableProperty, value);
116 NotifyPropertyChanged();
121 /// Controls whether the view is hidden from the AT-SPI tree.
124 /// False by default. Hiding an object means that any AT-SPI clients are not able to see it.
126 [EditorBrowsable(EditorBrowsableState.Never)]
127 public bool AccessibilityHidden
131 return (bool)GetValue(AccessibilityHiddenProperty);
135 SetValue(AccessibilityHiddenProperty, value);
136 NotifyPropertyChanged();
141 /// Gets or sets a value that allows the automation framework to find and interact with this element.
143 [EditorBrowsable(EditorBrowsableState.Never)]
144 public new string AutomationId
148 return GetValue(AutomationIdProperty) as string;
152 SetValue(AutomationIdProperty, value);
153 NotifyPropertyChanged();
157 private string InternalAutomationId
159 get { return base.AutomationId; }
162 base.AutomationId = value;
163 AppendAccessibilityAttribute("automationId", value);