Skip to content

Commit d6d6e18

Browse files
[housekeeping] Automated PR to fix formatting errors (#1902)
1 parent 534c28d commit d6d6e18

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

src/CommunityToolkit.Maui.MediaElement/Views/MauiMediaElement.windows.cs

+30-30
Original file line numberDiff line numberDiff line change
@@ -31,45 +31,45 @@ public class MauiMediaElement : Grid, IDisposable
3131
readonly Grid buttonContainer;
3232
readonly Button fullScreenButton;
3333
readonly MediaPlayerElement mediaPlayerElement;
34-
static readonly FontIcon fullScreenIcon = new() { Glyph = "\uE740", FontFamily = new FontFamily("Segoe Fluent Icons")};
34+
static readonly FontIcon fullScreenIcon = new() { Glyph = "\uE740", FontFamily = new FontFamily("Segoe Fluent Icons") };
3535
static readonly FontIcon exitFullScreenIcon = new() { Glyph = "\uE73F", FontFamily = new FontFamily("Segoe Fluent Icons") };
3636
bool doesNavigationBarExistBeforeFullScreen;
3737
bool isDisposed;
3838

3939
/// <summary>
4040
/// Initializes a new instance of the <see cref="MauiMediaElement"/> class.
41-
/// </summary>
42-
/// <param name="mediaPlayerElement"></param>
43-
public MauiMediaElement(MediaPlayerElement mediaPlayerElement)
44-
{
45-
this.mediaPlayerElement = mediaPlayerElement;
46-
47-
fullScreenButton = new Button
48-
{
49-
Content = fullScreenIcon,
50-
Background = new SolidColorBrush(Colors.Transparent),
51-
Width = 45,
52-
Height = 45
53-
};
54-
41+
/// </summary>
42+
/// <param name="mediaPlayerElement"></param>
43+
public MauiMediaElement(MediaPlayerElement mediaPlayerElement)
44+
{
45+
this.mediaPlayerElement = mediaPlayerElement;
46+
47+
fullScreenButton = new Button
48+
{
49+
Content = fullScreenIcon,
50+
Background = new SolidColorBrush(Colors.Transparent),
51+
Width = 45,
52+
Height = 45
53+
};
54+
5555
buttonContainer = new Grid
56-
{
57-
HorizontalAlignment = Microsoft.UI.Xaml.HorizontalAlignment.Right,
58-
VerticalAlignment = Microsoft.UI.Xaml.VerticalAlignment.Top,
59-
Visibility = mediaPlayerElement.TransportControls.Visibility,
60-
Width = 45,
61-
Height = 45,
62-
Margin = new Thickness(0, 20, 30, 0)
63-
};
56+
{
57+
HorizontalAlignment = Microsoft.UI.Xaml.HorizontalAlignment.Right,
58+
VerticalAlignment = Microsoft.UI.Xaml.VerticalAlignment.Top,
59+
Visibility = mediaPlayerElement.TransportControls.Visibility,
60+
Width = 45,
61+
Height = 45,
62+
Margin = new Thickness(0, 20, 30, 0)
63+
};
6464

65-
fullScreenButton.Click += OnFullScreenButtonClick;
66-
buttonContainer.Children.Add(fullScreenButton);
65+
fullScreenButton.Click += OnFullScreenButtonClick;
66+
buttonContainer.Children.Add(fullScreenButton);
6767

68-
Children.Add(this.mediaPlayerElement);
69-
Children.Add(buttonContainer);
68+
Children.Add(this.mediaPlayerElement);
69+
Children.Add(buttonContainer);
7070

71-
mediaPlayerElement.PointerMoved += OnMediaPlayerElementPointerMoved;
72-
}
71+
mediaPlayerElement.PointerMoved += OnMediaPlayerElementPointerMoved;
72+
}
7373

7474
/// <summary>
7575
/// Finalizer
@@ -103,7 +103,7 @@ protected virtual void Dispose(bool disposing)
103103

104104
fullScreenButton.Click -= OnFullScreenButtonClick;
105105
mediaPlayerElement.PointerMoved -= OnMediaPlayerElementPointerMoved;
106-
106+
107107
if (disposing)
108108
{
109109
mediaPlayerElement.MediaPlayer.Dispose();

src/CommunityToolkit.Maui/Behaviors/PlatformBehaviors/IconTintColor/IconTintColorBehavior.android.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace CommunityToolkit.Maui.Behaviors;
1212
public partial class IconTintColorBehavior
1313
{
1414
AView? nativeView;
15-
15+
1616
/// <inheritdoc/>
1717
protected override void OnAttachedTo(View bindable, AView platformView)
1818
{
@@ -24,7 +24,7 @@ protected override void OnAttachedTo(View bindable, AView platformView)
2424
bindable.PropertyChanged += OnElementPropertyChanged;
2525
PropertyChanged += OnTintedImagePropertyChanged;
2626
}
27-
27+
2828
void OnTintedImagePropertyChanged(object? sender, PropertyChangedEventArgs e)
2929
{
3030
if (e.PropertyName == TintColorProperty.PropertyName)

0 commit comments

Comments
 (0)