diff options
author | SungHyun Min <shyun.min@samsung.com> | 2017-06-26 17:02:53 +0900 |
---|---|---|
committer | Kangho Hur <kangho.hur@samsung.com> | 2017-10-23 13:34:38 +0900 |
commit | bdf12d0462b049af6e61a89df10bdef940730fea (patch) | |
tree | 0aa2c2ea1a8dd65afd4abfd3f8469e221d9825b9 /Xamarin.Forms.Platform.Tizen | |
parent | f2241f6713c416f509d1e48e8ecdf77517675ec7 (diff) | |
download | xamarin-forms-bdf12d0462b049af6e61a89df10bdef940730fea.tar.gz xamarin-forms-bdf12d0462b049af6e61a89df10bdef940730fea.tar.bz2 xamarin-forms-bdf12d0462b049af6e61a89df10bdef940730fea.zip |
Fix the checkbox focus issue
TASK=TCAPI-2397
*It is a temporary way until the UX for TV is defined.
Change-Id: I486f79b9fe8b6958769eeeb25f0dd7cb323222b2
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen')
-rw-r--r--[-rwxr-xr-x] | Xamarin.Forms.Platform.Tizen/Cells/SwitchCellRenderer.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Cells/SwitchCellRenderer.cs b/Xamarin.Forms.Platform.Tizen/Cells/SwitchCellRenderer.cs index 7684f528..bb52d5df 100755..100644 --- a/Xamarin.Forms.Platform.Tizen/Cells/SwitchCellRenderer.cs +++ b/Xamarin.Forms.Platform.Tizen/Cells/SwitchCellRenderer.cs @@ -43,6 +43,14 @@ namespace Xamarin.Forms.Platform.Tizen toggle.BindingContext = cell; toggle.Parent = cell.Parent; var nativeView = Platform.GetOrCreateRenderer(toggle).NativeView; + + //It is a temporary way to prevent that the check of the Cell gets focus until the UX about views in the Cell for TV is defined. + if (Device.Idiom == TargetIdiom.TV) + { + ((Check)nativeView).AllowFocus(false); + ((Check)nativeView).PropagateEvents = true; + } + return nativeView; } return null; @@ -67,4 +75,4 @@ namespace Xamarin.Forms.Platform.Tizen return base.OnCellPropertyChanged(cell, property, realizedView); } } -} +}
\ No newline at end of file |