diff options
author | Kangho Hur <kangho.hur@samsung.com> | 2017-04-24 15:37:51 +0900 |
---|---|---|
committer | Kangho Hur <kangho.hur@samsung.com> | 2017-10-23 13:34:33 +0900 |
commit | 8da18bbae98cae2749fbbf50344458f82f4fbceb (patch) | |
tree | 03e3fd4be3fd3e182030d015350defb64475584f /Xamarin.Forms.Platform.iOS/Renderers/ButtonRenderer.cs | |
parent | b70ccb89c33c96438d6f2c5159e278d9d0dfd761 (diff) | |
download | xamarin-forms-8da18bbae98cae2749fbbf50344458f82f4fbceb.tar.gz xamarin-forms-8da18bbae98cae2749fbbf50344458f82f4fbceb.tar.bz2 xamarin-forms-8da18bbae98cae2749fbbf50344458f82f4fbceb.zip |
rebase to tags/beta-2.3.5-pre1
- this is base code of xamarin.forms 2.3.5-pre1 (https://github.com/xamarin/Xamarin.Forms/commit/fc778eb9789f50634d48fb9ad127f211b3fcfcc7)
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/Renderers/ButtonRenderer.cs')
-rw-r--r-- | Xamarin.Forms.Platform.iOS/Renderers/ButtonRenderer.cs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/ButtonRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/ButtonRenderer.cs index c3002b01..ed9291bc 100644 --- a/Xamarin.Forms.Platform.iOS/Renderers/ButtonRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/Renderers/ButtonRenderer.cs @@ -119,21 +119,6 @@ namespace Xamarin.Forms.Platform.iOS } } - protected override void SetAccessibilityLabel() - { - // If we have not specified an AccessibilityLabel and the AccessibiltyLabel is current bound to the Title, - // exit this method so we don't set the AccessibilityLabel value and break the binding. - // This may pose a problem for users who want to explicitly set the AccessibilityLabel to null, but this - // 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); - if (string.IsNullOrWhiteSpace(elemValue) && Control?.AccessibilityLabel == Control?.Title(UIControlState.Normal)) - return; - - base.SetAccessibilityLabel(); - } - void OnButtonTouchUpInside(object sender, EventArgs eventArgs) { ((IButtonController)Element)?.SendReleased(); |