Skip to content

Commit 12ba803

Browse files
committed
tabs v spaces
1 parent 49e3a0c commit 12ba803

27 files changed

+365
-361
lines changed

samples/MvvmSample.Core/ViewModels/MessengerPageViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ namespace MvvmSample.Core.ViewModels
1212
{
1313
public class MessengerPageViewModel : SamplePageViewModel
1414
{
15-
public MessengerPageViewModel()
16-
{
15+
public MessengerPageViewModel()
16+
{
1717
RequestCurrentUsernameCommand = new RelayCommand(RequestCurrentUsername);
1818
ResetCurrentUsernameCommand = new RelayCommand(ResetCurrentUsername);
1919
}

samples/MvvmSample.Core/ViewModels/ObservableObjectPageViewModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ namespace MvvmSample.Core.ViewModels
1010
{
1111
public class ObservableObjectPageViewModel : SamplePageViewModel
1212
{
13-
public ObservableObjectPageViewModel()
14-
{
13+
public ObservableObjectPageViewModel()
14+
{
1515
ReloadTaskCommand = new RelayCommand(ReloadTask);
16-
}
16+
}
1717

1818
/// <summary>
1919
/// Gets the <see cref="ICommand"/> responsible for setting <see cref="MyTask"/>.

samples/MvvmSample.Core/ViewModels/SamplePageViewModel.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ public SamplePageViewModel()
3434
/// </summary>
3535
public IAsyncRelayCommand<string> LoadDocsCommand { get; }
3636

37-
public IReadOnlyDictionary<string, string> Texts { get => texts; set => SetProperty(ref texts, value); }
37+
public IReadOnlyDictionary<string, string> Texts
38+
{
39+
get => texts;
40+
set => SetProperty(ref texts, value);
41+
}
3842

3943
/// <summary>
4044
/// Gets the markdown for a specified paragraph from the docs page.

samples/MvvmSampleXF/MvvmSampleXF/App.xaml.cs

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -13,39 +13,39 @@
1313

1414
namespace MvvmSampleXF
1515
{
16-
public partial class App : Application
17-
{
18-
private bool _initialized;
16+
public partial class App : Application
17+
{
18+
private bool _initialized;
1919

20-
public App()
21-
{
22-
InitializeComponent();
20+
public App()
21+
{
22+
InitializeComponent();
2323

24-
// Register services
25-
if (!_initialized)
26-
{
27-
_initialized = true;
28-
Ioc.Default.ConfigureServices(
29-
new ServiceCollection()
30-
.AddSingleton<IFilesService, FileService>()
31-
.AddSingleton<ISettingsService, SettingsService>()
32-
.AddSingleton(RestService.For<IRedditService>("https://www.reddit.com/"))
33-
.BuildServiceProvider());
34-
}
24+
// Register services
25+
if (!_initialized)
26+
{
27+
_initialized = true;
28+
Ioc.Default.ConfigureServices(
29+
new ServiceCollection()
30+
.AddSingleton<IFilesService, FileService>()
31+
.AddSingleton<ISettingsService, SettingsService>()
32+
.AddSingleton(RestService.For<IRedditService>("https://www.reddit.com/"))
33+
.BuildServiceProvider());
34+
}
3535

36-
MainPage = new AppShell();
37-
}
36+
MainPage = new AppShell();
37+
}
3838

39-
protected override void OnStart()
40-
{
41-
}
39+
protected override void OnStart()
40+
{
41+
}
4242

43-
protected override void OnSleep()
44-
{
45-
}
43+
protected override void OnSleep()
44+
{
45+
}
4646

47-
protected override void OnResume()
48-
{
49-
}
50-
}
47+
protected override void OnResume()
48+
{
49+
}
50+
}
5151
}

samples/MvvmSampleXF/MvvmSampleXF/AppShell.xaml.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99

1010
namespace MvvmSampleXF
1111
{
12-
[XamlCompilation(XamlCompilationOptions.Compile)]
13-
public partial class AppShell : Shell
14-
{
15-
public AppShell()
16-
{
17-
InitializeComponent();
18-
}
19-
}
12+
[XamlCompilation(XamlCompilationOptions.Compile)]
13+
public partial class AppShell : Shell
14+
{
15+
public AppShell()
16+
{
17+
InitializeComponent();
18+
}
19+
}
2020
}

samples/MvvmSampleXF/MvvmSampleXF/Controls/FlyoutHeader.xaml.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99

1010
namespace MvvmSampleXF.Controls
1111
{
12-
[XamlCompilation(XamlCompilationOptions.Compile)]
13-
public partial class FlyoutHeader : ContentView
14-
{
15-
public FlyoutHeader()
16-
{
17-
InitializeComponent();
18-
}
19-
}
12+
[XamlCompilation(XamlCompilationOptions.Compile)]
13+
public partial class FlyoutHeader : ContentView
14+
{
15+
public FlyoutHeader()
16+
{
17+
InitializeComponent();
18+
}
19+
}
2020
}

samples/MvvmSampleXF/MvvmSampleXF/Controls/InteractiveSample.xaml.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
namespace MvvmSampleXF.Controls
1111
{
12-
[XamlCompilation(XamlCompilationOptions.Compile)]
13-
public partial class InteractiveSample : ContentView
14-
{
12+
[XamlCompilation(XamlCompilationOptions.Compile)]
13+
public partial class InteractiveSample : ContentView
14+
{
1515
public static readonly BindableProperty CSharpCodeProperty = BindableProperty.Create(nameof(CSharpCode), typeof(string), typeof(InteractiveSample), string.Empty);
1616
public static readonly BindableProperty XamlCodeProperty = BindableProperty.Create(nameof(XamlCode), typeof(string), typeof(InteractiveSample), string.Empty);
1717

@@ -27,8 +27,8 @@ public string XamlCode
2727
set => SetValue(XamlCodeProperty, value);
2828
}
2929
public InteractiveSample()
30-
{
31-
InitializeComponent();
30+
{
31+
InitializeComponent();
3232
}
33-
}
33+
}
3434
}

samples/MvvmSampleXF/MvvmSampleXF/Converters/IsSelfPostToWidthRequestConverter.cs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@
66

77
namespace MvvmSampleXF.Converters
88
{
9-
public class IsSelfPostToWidthRequestConverter : IValueConverter
10-
{
11-
public double WidthRequest { get; set; }
12-
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
13-
{
14-
if (value is string str)
15-
{
16-
return str.Equals("self", StringComparison.OrdinalIgnoreCase) ? 0 : WidthRequest;
17-
}
9+
public class IsSelfPostToWidthRequestConverter : IValueConverter
10+
{
11+
public double WidthRequest { get; set; }
12+
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
13+
{
14+
if (value is string str)
15+
{
16+
return str.Equals("self", StringComparison.OrdinalIgnoreCase) ? 0 : WidthRequest;
17+
}
1818

19-
return 0d;
20-
}
19+
return 0d;
20+
}
2121

22-
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
23-
{
24-
throw new NotImplementedException();
25-
}
26-
}
22+
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
23+
{
24+
throw new NotImplementedException();
25+
}
26+
}
2727
}

samples/MvvmSampleXF/MvvmSampleXF/Converters/TaskResultConverter.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@
77

88
namespace MvvmSampleXF.Converters
99
{
10-
public class TaskResultConverter : IValueConverter
11-
{
12-
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
13-
{
14-
if (value is Task<string> task)
15-
{
16-
return task.Status == TaskStatus.RanToCompletion ? task.Result : default;
17-
}
10+
public class TaskResultConverter : IValueConverter
11+
{
12+
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
13+
{
14+
if (value is Task<string> task)
15+
{
16+
return task.Status == TaskStatus.RanToCompletion ? task.Result : default;
17+
}
1818

19-
return null;
20-
}
19+
return null;
20+
}
2121

22-
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
23-
{
24-
throw new NotImplementedException();
25-
}
26-
}
22+
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
23+
{
24+
throw new NotImplementedException();
25+
}
26+
}
2727
}

samples/MvvmSampleXF/MvvmSampleXF/Services/FileService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
namespace MvvmSampleXF.Services
1111
{
12-
public sealed class FileService : IFilesService
13-
{
14-
public string InstallationPath => Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
12+
public sealed class FileService : IFilesService
13+
{
14+
public string InstallationPath => Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
1515

1616
public async Task<Stream> OpenForReadAsync(string path)
1717
{

0 commit comments

Comments
 (0)