diff --git a/XamarinCommunityToolkit/Extensions/TranslateExtension.shared.cs b/XamarinCommunityToolkit/Extensions/TranslateExtension.shared.cs index 29cc356d9..1844273d1 100644 --- a/XamarinCommunityToolkit/Extensions/TranslateExtension.shared.cs +++ b/XamarinCommunityToolkit/Extensions/TranslateExtension.shared.cs @@ -5,16 +5,16 @@ namespace Xamarin.CommunityToolkit.Extensions { - [ContentProperty(nameof(Text))] - public class TranslateExtension : IMarkupExtension - { - public string Text { get; set; } - public string StringFormat { get; set; } - object IMarkupExtension.ProvideValue(IServiceProvider serviceProvider) => ProvideValue(serviceProvider); + [ContentProperty(nameof(Text))] + public class TranslateExtension : IMarkupExtension + { + public string Text { get; set; } + public string StringFormat { get; set; } + object IMarkupExtension.ProvideValue(IServiceProvider serviceProvider) => ProvideValue(serviceProvider); - public BindingBase ProvideValue(IServiceProvider serviceProvider) - { - #if !NETSTANDARD1_0 + public BindingBase ProvideValue(IServiceProvider serviceProvider) + { +#if !NETSTANDARD1_0 var binding = new Binding { Mode = BindingMode.OneWay, @@ -23,9 +23,9 @@ public BindingBase ProvideValue(IServiceProvider serviceProvider) StringFormat = StringFormat }; return binding; - #else - throw new NotSupportedException(); - #endif - } - } -} +#else + throw new NotSupportedException(); +#endif + } + } +} \ No newline at end of file diff --git a/XamarinCommunityToolkit/Helpers/LocalizationResourceManager.shared.cs b/XamarinCommunityToolkit/Helpers/LocalizationResourceManager.shared.cs index 1cf8fa759..5cba47a08 100644 --- a/XamarinCommunityToolkit/Helpers/LocalizationResourceManager.shared.cs +++ b/XamarinCommunityToolkit/Helpers/LocalizationResourceManager.shared.cs @@ -37,4 +37,4 @@ public void Invalidate() } } #endif -} +} \ No newline at end of file diff --git a/XamarinCommunityToolkitSample/Models/Language.cs b/XamarinCommunityToolkitSample/Models/Language.cs index 1a086b45f..a7a8c6ac9 100644 --- a/XamarinCommunityToolkitSample/Models/Language.cs +++ b/XamarinCommunityToolkitSample/Models/Language.cs @@ -1,14 +1,13 @@ namespace Xamarin.CommunityToolkit.Sample.Models { - public readonly struct Language - { - public Language(string name, string ci) - { - Name = name; - CI = ci; - } - public string Name { get; } - public string CI { get; } - } -} - + public readonly struct Language + { + public Language(string name, string ci) + { + Name = name; + CI = ci; + } + public string Name { get; } + public string CI { get; } + } +} \ No newline at end of file diff --git a/XamarinCommunityToolkitSample/Pages/SettingPage.xaml.cs b/XamarinCommunityToolkitSample/Pages/SettingPage.xaml.cs index 5892a2890..d6e7b2309 100644 --- a/XamarinCommunityToolkitSample/Pages/SettingPage.xaml.cs +++ b/XamarinCommunityToolkitSample/Pages/SettingPage.xaml.cs @@ -12,4 +12,4 @@ public SettingPage() async void OnCloseClicked(object sender, EventArgs e) => await Navigation.PopModalAsync(); } -} +} \ No newline at end of file diff --git a/XamarinCommunityToolkitSample/ViewModels/SettingViewModel.cs b/XamarinCommunityToolkitSample/ViewModels/SettingViewModel.cs index c8bd6bdb9..fe03b9d9f 100644 --- a/XamarinCommunityToolkitSample/ViewModels/SettingViewModel.cs +++ b/XamarinCommunityToolkitSample/ViewModels/SettingViewModel.cs @@ -44,5 +44,5 @@ void LoadLanguages() }; SelectedLanguage = SupportedLanguages.FirstOrDefault(pro => pro.CI == LocalizationResourceManager.Current.CurrentCulture.TwoLetterISOLanguageName); } - } -} + } +} \ No newline at end of file