diff options
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT/FormsTextBox.cs')
-rw-r--r-- | Xamarin.Forms.Platform.WinRT/FormsTextBox.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/FormsTextBox.cs b/Xamarin.Forms.Platform.WinRT/FormsTextBox.cs index 4cb74ec7..5847e0b9 100644 --- a/Xamarin.Forms.Platform.WinRT/FormsTextBox.cs +++ b/Xamarin.Forms.Platform.WinRT/FormsTextBox.cs @@ -37,7 +37,7 @@ namespace Xamarin.Forms.Platform.WinRT public new static readonly DependencyProperty TextProperty = DependencyProperty.Register(nameof(Text), typeof(string), typeof(FormsTextBox), new PropertyMetadata("", TextPropertyChanged)); - static InputScope s_passwordInputScope; + InputScope passwordInputScope; Border _borderElement; InputScope _cachedInputScope; bool _cachedPredictionsSetting; @@ -87,20 +87,20 @@ namespace Xamarin.Forms.Platform.WinRT set { SetValue(TextProperty, value); } } - static InputScope PasswordInputScope + InputScope PasswordInputScope { get { - if (s_passwordInputScope != null) + if (passwordInputScope != null) { - return s_passwordInputScope; + return passwordInputScope; } - s_passwordInputScope = new InputScope(); + passwordInputScope = new InputScope(); var name = new InputScopeName { NameValue = InputScopeNameValue.Default }; - s_passwordInputScope.Names.Add(name); + passwordInputScope.Names.Add(name); - return s_passwordInputScope; + return passwordInputScope; } } |