summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS
diff options
context:
space:
mode:
authorSamantha Houts <samhouts@users.noreply.github.com>2017-05-10 17:20:57 (GMT)
committerRui Marinho <me@ruimarinho.net>2017-05-10 17:20:57 (GMT)
commit4e83b8ee0fa9274a1183ca41117eb91df825e341 (patch)
tree436861be93dbf5760c4c00411d80d2668378f4b4 /Xamarin.Forms.Platform.iOS
parentc1fbfae03ca04dd70a31a00042c745658cc8bd97 (diff)
downloadxamarin-forms-4e83b8ee0fa9274a1183ca41117eb91df825e341.zip
xamarin-forms-4e83b8ee0fa9274a1183ca41117eb91df825e341.tar.gz
xamarin-forms-4e83b8ee0fa9274a1183ca41117eb91df825e341.tar.bz2
[All] Rename Accessibility -> AutomationProperties (#912)
* [All] Renamed Accessibility -> AutomationProperties * Update docs * Restore doc summaries * Revert unintended csproj changes
Diffstat (limited to 'Xamarin.Forms.Platform.iOS')
-rw-r--r--Xamarin.Forms.Platform.iOS/Renderers/ButtonRenderer.cs2
-rw-r--r--Xamarin.Forms.Platform.iOS/Renderers/LabelRenderer.cs2
-rw-r--r--Xamarin.Forms.Platform.iOS/ViewRenderer.cs6
-rw-r--r--Xamarin.Forms.Platform.iOS/VisualElementRenderer.cs12
4 files changed, 11 insertions, 11 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/ButtonRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/ButtonRenderer.cs
index dd25e63..ed9291b 100644
--- a/Xamarin.Forms.Platform.iOS/Renderers/ButtonRenderer.cs
+++ b/Xamarin.Forms.Platform.iOS/Renderers/ButtonRenderer.cs
@@ -102,7 +102,7 @@ namespace Xamarin.Forms.Platform.iOS
// will prevent us from inadvertently breaking UI Tests that are using Query.Marked to get the dynamic Title
// of the Button.
- var elemValue = (string)Element?.GetValue(Accessibility.NameProperty);
+ var elemValue = (string)Element?.GetValue(AutomationProperties.NameProperty);
if (string.IsNullOrWhiteSpace(elemValue) && Control?.AccessibilityLabel == Control?.Title(UIControlState.Normal))
return;
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/LabelRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/LabelRenderer.cs
index 82ceda8..5eef691 100644
--- a/Xamarin.Forms.Platform.iOS/Renderers/LabelRenderer.cs
+++ b/Xamarin.Forms.Platform.iOS/Renderers/LabelRenderer.cs
@@ -146,7 +146,7 @@ namespace Xamarin.Forms.Platform.MacOS
// will prevent us from inadvertently breaking UI Tests that are using Query.Marked to get the dynamic Text
// of the Label.
- var elemValue = (string)Element?.GetValue(Accessibility.NameProperty);
+ var elemValue = (string)Element?.GetValue(AutomationProperties.NameProperty);
if (string.IsNullOrWhiteSpace(elemValue) && Control?.AccessibilityLabel == Control?.Text)
return;
diff --git a/Xamarin.Forms.Platform.iOS/ViewRenderer.cs b/Xamarin.Forms.Platform.iOS/ViewRenderer.cs
index a785fb0..13b11e6 100644
--- a/Xamarin.Forms.Platform.iOS/ViewRenderer.cs
+++ b/Xamarin.Forms.Platform.iOS/ViewRenderer.cs
@@ -131,7 +131,7 @@ namespace Xamarin.Forms.Platform.MacOS
if (_defaultAccessibilityHint == null)
_defaultAccessibilityHint = Control.AccessibilityHint;
- Control.AccessibilityHint = (string)Element.GetValue(Accessibility.HintProperty) ?? _defaultAccessibilityHint;
+ Control.AccessibilityHint = (string)Element.GetValue(AutomationProperties.HelpTextProperty) ?? _defaultAccessibilityHint;
}
@@ -149,7 +149,7 @@ namespace Xamarin.Forms.Platform.MacOS
if (_defaultAccessibilityLabel == null)
_defaultAccessibilityLabel = Control.AccessibilityLabel;
- Control.AccessibilityLabel = (string)Element.GetValue(Accessibility.NameProperty) ?? _defaultAccessibilityLabel;
+ Control.AccessibilityLabel = (string)Element.GetValue(AutomationProperties.NameProperty) ?? _defaultAccessibilityLabel;
}
protected override void SetIsAccessibilityElement()
@@ -166,7 +166,7 @@ namespace Xamarin.Forms.Platform.MacOS
if (!_defaultIsAccessibilityElement.HasValue)
_defaultIsAccessibilityElement = Control.IsAccessibilityElement;
- Control.IsAccessibilityElement = (bool)((bool?)Element.GetValue(Accessibility.IsInAccessibleTreeProperty) ?? _defaultIsAccessibilityElement);
+ Control.IsAccessibilityElement = (bool)((bool?)Element.GetValue(AutomationProperties.IsInAccessibleTreeProperty) ?? _defaultIsAccessibilityElement);
}
#endif
protected override void SetAutomationId(string id)
diff --git a/Xamarin.Forms.Platform.iOS/VisualElementRenderer.cs b/Xamarin.Forms.Platform.iOS/VisualElementRenderer.cs
index d63385d..ee16328 100644
--- a/Xamarin.Forms.Platform.iOS/VisualElementRenderer.cs
+++ b/Xamarin.Forms.Platform.iOS/VisualElementRenderer.cs
@@ -284,11 +284,11 @@ namespace Xamarin.Forms.Platform.MacOS
#if __MOBILE__
else if (e.PropertyName == PlatformConfiguration.iOSSpecific.VisualElement.BlurEffectProperty.PropertyName)
SetBlur((BlurEffectStyle)Element.GetValue(PlatformConfiguration.iOSSpecific.VisualElement.BlurEffectProperty));
- else if (e.PropertyName == Accessibility.HintProperty.PropertyName)
+ else if (e.PropertyName == AutomationProperties.HelpTextProperty.PropertyName)
SetAccessibilityHint();
- else if (e.PropertyName == Accessibility.NameProperty.PropertyName)
+ else if (e.PropertyName == AutomationProperties.NameProperty.PropertyName)
SetAccessibilityLabel();
- else if (e.PropertyName == Accessibility.IsInAccessibleTreeProperty.PropertyName)
+ else if (e.PropertyName == AutomationProperties.IsInAccessibleTreeProperty.PropertyName)
SetIsAccessibilityElement();
#endif
}
@@ -307,7 +307,7 @@ namespace Xamarin.Forms.Platform.MacOS
if (_defaultAccessibilityHint == null)
_defaultAccessibilityHint = AccessibilityHint;
- AccessibilityHint = (string)Element.GetValue(Accessibility.HintProperty) ?? _defaultAccessibilityHint;
+ AccessibilityHint = (string)Element.GetValue(AutomationProperties.HelpTextProperty) ?? _defaultAccessibilityHint;
}
protected virtual void SetAccessibilityLabel()
@@ -318,7 +318,7 @@ namespace Xamarin.Forms.Platform.MacOS
if (_defaultAccessibilityLabel == null)
_defaultAccessibilityLabel = AccessibilityLabel;
- AccessibilityLabel = (string)Element.GetValue(Accessibility.NameProperty) ?? _defaultAccessibilityLabel;
+ AccessibilityLabel = (string)Element.GetValue(AutomationProperties.NameProperty) ?? _defaultAccessibilityLabel;
}
protected virtual void SetIsAccessibilityElement()
@@ -329,7 +329,7 @@ namespace Xamarin.Forms.Platform.MacOS
if (!_defaultIsAccessibilityElement.HasValue)
_defaultIsAccessibilityElement = IsAccessibilityElement;
- IsAccessibilityElement = (bool)((bool?)Element.GetValue(Accessibility.IsInAccessibleTreeProperty) ?? _defaultIsAccessibilityElement);
+ IsAccessibilityElement = (bool)((bool?)Element.GetValue(AutomationProperties.IsInAccessibleTreeProperty) ?? _defaultIsAccessibilityElement);
}
#endif
protected virtual void SetAutomationId(string id)