Skip to content

Commit 1e5cac8

Browse files
[create-pull-request] automated change
1 parent 5b5aaa5 commit 1e5cac8

File tree

51 files changed

+255
-241
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+255
-241
lines changed

src/Compatibility/Core/src/Tizen/ResourcePath.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public static string GetPath(string res)
1414
return res;
1515
}
1616

17-
foreach (AppFW.ResourceManager.Category category in Enum.GetValues<AppFW.ResourceManager.Category>())
17+
foreach (AppFW.ResourceManager.Category category in Enum.GetValues<AppFW.ResourceManager.Category>())
1818
{
1919
var path = AppFW.ResourceManager.TryGetPath(category, res);
2020

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
using Microsoft.UI.Xaml;
1+
using System;
2+
using System.Collections.Generic;
3+
using System.IO;
4+
using System.Linq;
5+
using System.Runtime.InteropServices.WindowsRuntime;
6+
using Microsoft.UI.Xaml;
27
using Microsoft.UI.Xaml.Controls;
38
using Microsoft.UI.Xaml.Controls.Primitives;
49
using Microsoft.UI.Xaml.Data;
510
using Microsoft.UI.Xaml.Input;
611
using Microsoft.UI.Xaml.Media;
712
using Microsoft.UI.Xaml.Navigation;
813
using Microsoft.UI.Xaml.Shapes;
9-
using System;
10-
using System.Collections.Generic;
11-
using System.IO;
12-
using System.Linq;
13-
using System.Runtime.InteropServices.WindowsRuntime;
1414
using Windows.ApplicationModel;
1515
using Windows.ApplicationModel.Activation;
1616
using Windows.Foundation;
@@ -26,24 +26,24 @@ namespace Maui.Controls.Sample.WinUI;
2626
/// </summary>
2727
public partial class App : Microsoft.UI.Xaml.Application
2828
{
29-
/// <summary>
30-
/// Initializes the singleton application object. This is the first line of authored code
31-
/// executed, and as such is the logical equivalent of main() or WinMain().
32-
/// </summary>
33-
public App()
34-
{
35-
InitializeComponent();
36-
}
29+
/// <summary>
30+
/// Initializes the singleton application object. This is the first line of authored code
31+
/// executed, and as such is the logical equivalent of main() or WinMain().
32+
/// </summary>
33+
public App()
34+
{
35+
InitializeComponent();
36+
}
3737

38-
/// <summary>
39-
/// Invoked when the application is launched.
40-
/// </summary>
41-
/// <param name="args">Details about the launch request and process.</param>
42-
protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
43-
{
44-
m_window = new MainWindow();
45-
m_window.Activate();
46-
}
38+
/// <summary>
39+
/// Invoked when the application is launched.
40+
/// </summary>
41+
/// <param name="args">Details about the launch request and process.</param>
42+
protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
43+
{
44+
m_window = new MainWindow();
45+
m_window.Activate();
46+
}
4747

48-
private Microsoft.UI.Xaml.Window? m_window;
48+
private Microsoft.UI.Xaml.Window? m_window;
4949
}

src/Controls/src/Build.Tasks/SetPropertiesVisitor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ static bool TryParsePath(ILContext context, string path, TypeReference tSourceRe
669669
{
670670
if (previousPartTypeRef.IsArray)
671671
previousPartTypeRef = previousPartTypeRef.GetElementType();
672-
672+
673673
previousPartTypeRef.ResolveCached(context.Cache);
674674
}
675675

src/Controls/src/Core/Compatibility/Handlers/ListView/Tizen/CellContentFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#nullable disable
2-
using Microsoft.Maui.Graphics;
32
using Microsoft.Maui.Controls.Internals;
3+
using Microsoft.Maui.Graphics;
44

55
namespace Microsoft.Maui.Controls.Handlers.Compatibility
66
{

src/Controls/src/Core/Handlers/Items/CarouselViewHandler.Windows.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public partial class CarouselViewHandler : ItemsViewHandler<CarouselView>
2323
ScrollViewer _scrollViewer;
2424
WScrollBarVisibility? _horizontalScrollBarVisibilityWithoutLoop;
2525
WScrollBarVisibility? _verticalScrollBarVisibilityWithoutLoop;
26-
Size _currentSize;
26+
Size _currentSize;
2727
bool _isCarouselViewReady;
2828
NotifyCollectionChangedEventHandler _collectionChanged;
2929
readonly WeakNotifyCollectionChangedProxy _proxy = new();
@@ -195,7 +195,7 @@ public static void MapPosition(CarouselViewHandler handler, CarouselView carouse
195195
{
196196
handler.UpdatePosition();
197197
}
198-
198+
199199
}
200200

201201
public static void MapIsBounceEnabled(CarouselViewHandler handler, CarouselView carouselView)

src/Controls/src/Core/Handlers/Items/ItemsViewHandler.Windows.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ object FindBoundItem(ScrollToRequestEventArgs args)
628628
{
629629
// CollectionGroups property is of type IObservableVector, but these objects should implement ICollectionViewGroup
630630
var itemGroup = CollectionViewSource.View.CollectionGroups[args.GroupIndex] as ICollectionViewGroup;
631-
if (itemGroup != null &&
631+
if (itemGroup != null &&
632632
args.Index < itemGroup.GroupItems.Count)
633633
{
634634
return itemGroup.GroupItems[args.Index];

src/Controls/src/Core/Platform/GestureManager/GesturePlatformManager.Windows.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -286,14 +286,14 @@ public VisualElement? Element
286286
if (_element == value)
287287
return;
288288

289-
if (_element is View && ElementGestureRecognizers is {} gestureRecognizersBefore)
289+
if (_element is View && ElementGestureRecognizers is { } gestureRecognizersBefore)
290290
{
291291
gestureRecognizersBefore.CollectionChanged -= _collectionChangedHandler;
292292
}
293293

294294
_element = value;
295295

296-
if (_element is View && ElementGestureRecognizers is {} gestureRecognizersAfter)
296+
if (_element is View && ElementGestureRecognizers is { } gestureRecognizersAfter)
297297
{
298298
gestureRecognizersAfter.CollectionChanged += _collectionChangedHandler;
299299
}
@@ -385,7 +385,7 @@ protected virtual void Dispose(bool disposing)
385385

386386
ClearContainerEventHandlers();
387387

388-
if (_element is View && ElementGestureRecognizers is {} gestureRecognizers)
388+
if (_element is View && ElementGestureRecognizers is { } gestureRecognizers)
389389
{
390390
gestureRecognizers.CollectionChanged -= _collectionChangedHandler;
391391
}
@@ -425,7 +425,7 @@ void HandlePan(ManipulationDeltaRoutedEventArgs e, View view)
425425
{
426426
if (view == null)
427427
return;
428-
428+
429429
_isPanning = true;
430430

431431
foreach (IPanGestureController recognizer in view.GestureRecognizers.GetGesturesFor<PanGestureRecognizer>().Where(g => g.TouchPoints == _fingers.Count))
@@ -517,7 +517,7 @@ void OnPointerExited(object sender, PointerRoutedEventArgs e)
517517
if (_fingers.Contains(id))
518518
_fingers.Remove(id);
519519
}
520-
520+
521521
SwipeComplete(true);
522522
PinchComplete(true);
523523
}
@@ -756,7 +756,7 @@ void UpdateDragAndDropGestureRecognizers()
756756
if (allowDrop)
757757
{
758758
_subscriptionFlags |= SubscriptionFlags.ContainerDropEventsSubscribed;
759-
759+
760760
_container.AllowDrop = true;
761761
_container.DragOver += HandleDragOver;
762762
_container.Drop += HandleDrop;
@@ -784,7 +784,7 @@ void UpdatingGestureRecognizers()
784784
{
785785
_subscriptionFlags |= SubscriptionFlags.ContainerTapAndRightTabEventSubscribed;
786786
_tappedEventHandler = new TappedEventHandler(OnTap);
787-
_container.AddHandler(FrameworkElement.TappedEvent,_tappedEventHandler, true);
787+
_container.AddHandler(FrameworkElement.TappedEvent, _tappedEventHandler, true);
788788
_container.RightTapped += OnTap;
789789
}
790790
else

src/Controls/src/Core/Platform/Windows/CollectionView/ItemContentControl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ internal void Realize()
175175
var content = dataTemplate.CreateContent();
176176
_visualElement = content as VisualElement;
177177

178-
if(_visualElement is null)
178+
if (_visualElement is null)
179179
{
180180
throw new InvalidOperationException($"{dataTemplate} could not be created from {content}");
181181
}

src/Controls/src/Core/Platform/Windows/CollectionView/LoopableCollectionView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ IEnumerator IEnumerable.GetEnumerator()
191191
return ((IEnumerable)_internal).GetEnumerator();
192192
}
193193

194-
void OnItemsVectorChanged(global::Windows.Foundation.Collections.IObservableVector<object> sender,
194+
void OnItemsVectorChanged(global::Windows.Foundation.Collections.IObservableVector<object> sender,
195195
global::Windows.Foundation.Collections.IVectorChangedEventArgs @event)
196196
{
197197
_vectorChanged.Invoke(sender, @event);

src/Controls/src/Core/Platform/Windows/CollectionView/ScrollHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ internal static void JumpToIndexAsync(ListViewBase list, int index, ScrollToPosi
208208

209209
public static async Task JumpToItemAsync(ListViewBase list, object targetItem, ScrollToPosition scrollToPosition)
210210
{
211-
if(!list.IsLoaded)
211+
if (!list.IsLoaded)
212212
{
213213
list.OnLoaded(async () =>
214214
{

0 commit comments

Comments
 (0)