Skip to content

Commit dc4ab8a

Browse files
dotnet format
1 parent 4521969 commit dc4ab8a

File tree

6 files changed

+8
-15
lines changed

6 files changed

+8
-15
lines changed

samples/CommunityToolkit.Maui.Markup.Sample/Pages/NewsPage.cs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
using System.Diagnostics.CodeAnalysis;
2-
3-
namespace CommunityToolkit.Maui.Markup.Sample.Pages;
1+
namespace CommunityToolkit.Maui.Markup.Sample.Pages;
42

53
sealed partial class NewsPage : BaseContentPage<NewsViewModel>
64
{
75
readonly IDispatcher dispatcher;
86
readonly RefreshView refreshView;
9-
7+
108
public NewsPage(IDispatcher dispatcher,
119
NewsViewModel newsViewModel) : base(newsViewModel, "Top Stories")
1210
{
@@ -47,7 +45,7 @@ protected override void OnAppearing()
4745

4846
static bool IsNullOrEmpty(in IEnumerable? enumerable) => !enumerable?.GetEnumerator().MoveNext() ?? true;
4947
}
50-
48+
5149
async void HandleSelectionChanged(object? sender, SelectionChangedEventArgs e)
5250
{
5351
ArgumentNullException.ThrowIfNull(sender);
@@ -83,13 +81,13 @@ bool TryRefreshCollectionView()
8381
}
8482

8583
void HandleNumberOfTopStoriesToFetchChanged(object? sender, int e) => TryRefreshCollectionView();
86-
84+
8785
Task NavigateToSettingsPage() => dispatcher.DispatchAsync(() =>
8886
{
8987
var route = AppShell.GetRoute<SettingsPage, SettingsViewModel>();
9088
return Shell.Current.GoToAsync(route);
9189
});
92-
90+
9391
Task NavigateToNewsDetailPage(StoryModel storyModel) => dispatcher.DispatchAsync(() =>
9492
{
9593
var route = AppShell.GetRoute<NewsDetailPage, NewsDetailViewModel>();

samples/CommunityToolkit.Maui.Markup.Sample/Pages/SettingsPage.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System.Diagnostics.CodeAnalysis;
2-
using Microsoft.Maui.Layouts;
1+
using Microsoft.Maui.Layouts;
32

43
namespace CommunityToolkit.Maui.Markup.Sample.Pages;
54

samples/CommunityToolkit.Maui.Markup.Sample/Platforms/iOS/AppDelegate.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System.Diagnostics.CodeAnalysis;
2-
using Foundation;
1+
using Foundation;
32
namespace CommunityToolkit.Maui.Markup.Sample;
43

54
[Register(nameof(AppDelegate))]

src/CommunityToolkit.Maui.Markup.UnitTests/BindableObjectExtensionsTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Windows.Input;
2-
using BindableObjectViews;
32
using CommunityToolkit.Maui.Markup.UnitTests.Base;
43
using NUnit.Framework;
54
namespace CommunityToolkit.Maui.Markup.UnitTests
@@ -746,7 +745,7 @@ public void SupportDerivedElements()
746745
.Invoke(l => l.Text = nameof(SupportDerivedElements))
747746
.Assign(out DerivedFromLabel assignDerivedFromLabel),
748747
Is.InstanceOf<DerivedFromLabel>());
749-
748+
750749
Assert.That(assignDerivedFromLabel, Is.InstanceOf<DerivedFromLabel>());
751750
});
752751
}

src/CommunityToolkit.Maui.Markup.UnitTests/DynamicResourceHandlerTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using CommunityToolkit.Maui.Markup.UnitTests.Base;
2-
using CommunityToolkit.Maui.Markup.UnitTests.Mocks;
32
using NUnit.Framework;
43
namespace CommunityToolkit.Maui.Markup.UnitTests;
54

src/CommunityToolkit.Maui.Markup.UnitTests/ElementExtensionsTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using CommunityToolkit.Maui.Markup.UnitTests.Base;
2-
using CommunityToolkit.Maui.Markup.UnitTests.Mocks;
32
using NUnit.Framework;
43
namespace CommunityToolkit.Maui.Markup.UnitTests;
54

0 commit comments

Comments
 (0)