зеркало из https://github.com/DeGsoft/maui-linux.git
Merge pull request #33 from jsuarezruiz/housekeeping/fix-codeformatting
[housekeeping] Automated PR to fix formatting errors
This commit is contained in:
Коммит
570a74d83f
|
@ -16,7 +16,7 @@ namespace Maui.Controls.Sample.Pages.Base
|
|||
{
|
||||
if (SelectedItem != null)
|
||||
{
|
||||
if(Application.Current.MainPage is FlyoutPage fp)
|
||||
if (Application.Current.MainPage is FlyoutPage fp)
|
||||
await fp.Detail.Navigation.PushAsync(PreparePage(SelectedItem));
|
||||
else
|
||||
await Navigation.PushAsync(PreparePage(SelectedItem));
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using Microsoft.Maui;
|
||||
using Microsoft.Maui.Controls;
|
||||
using Microsoft.Maui.Controls.Internals;
|
||||
using Microsoft.Maui;
|
||||
|
||||
namespace Maui.Controls.Sample.Pages.CollectionViewGalleries.CarouselViewGalleries
|
||||
{
|
||||
|
|
|
@ -17,7 +17,7 @@ namespace Maui.Controls.Sample.Pages
|
|||
|
||||
private void Detail_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
|
||||
{
|
||||
if(e.PropertyName == nameof(NavigationPage.CurrentPage))
|
||||
if (e.PropertyName == nameof(NavigationPage.CurrentPage))
|
||||
{
|
||||
Flyout.BindingContext = (Detail as NavigationPage).CurrentPage.BindingContext;
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ namespace Microsoft.Maui.Controls
|
|||
public IEnumerator<ISwipeItem> GetEnumerator()
|
||||
{
|
||||
foreach (ISwipeItem item in _swipeItems)
|
||||
yield return item;
|
||||
yield return item;
|
||||
}
|
||||
|
||||
public int IndexOf(ISwipeItem item)
|
||||
|
|
|
@ -63,8 +63,8 @@ namespace Microsoft.Maui.Controls
|
|||
set { SetValue(BottomItemsProperty, value); }
|
||||
}
|
||||
|
||||
bool ISwipeViewController.IsOpen
|
||||
{
|
||||
bool ISwipeViewController.IsOpen
|
||||
{
|
||||
get => ((ISwipeView)this).IsOpen;
|
||||
set => ((ISwipeView)this).IsOpen = value;
|
||||
}
|
||||
|
|
|
@ -55,13 +55,13 @@ namespace Microsoft.Maui.Controls.Core.UnitTests.Layouts
|
|||
}
|
||||
|
||||
[Test]
|
||||
public void ChangingRowSpacingInvalidatesGrid()
|
||||
public void ChangingRowSpacingInvalidatesGrid()
|
||||
{
|
||||
var grid = new GridLayout();
|
||||
|
||||
var handler = ListenForInvalidation(grid);
|
||||
grid.RowSpacing = 100;
|
||||
AssertInvalidated(handler);
|
||||
AssertInvalidated(handler);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
@ -77,21 +77,21 @@ namespace Microsoft.Maui.Controls.Core.UnitTests.Layouts
|
|||
[Test]
|
||||
public void ChangingChildRowInvalidatesGrid()
|
||||
{
|
||||
var grid = new GridLayout()
|
||||
{
|
||||
RowDefinitions = new RowDefinitionCollection
|
||||
{
|
||||
new RowDefinition(), new RowDefinition()
|
||||
}
|
||||
var grid = new GridLayout()
|
||||
{
|
||||
RowDefinitions = new RowDefinitionCollection
|
||||
{
|
||||
new RowDefinition(), new RowDefinition()
|
||||
}
|
||||
};
|
||||
|
||||
var view = Substitute.For<IView>();
|
||||
grid.Add(view);
|
||||
|
||||
var handler = ListenForInvalidation(grid);
|
||||
|
||||
|
||||
grid.SetRow(view, 1);
|
||||
|
||||
|
||||
AssertInvalidated(handler);
|
||||
}
|
||||
|
||||
|
@ -116,7 +116,7 @@ namespace Microsoft.Maui.Controls.Core.UnitTests.Layouts
|
|||
AssertInvalidated(handler);
|
||||
}
|
||||
|
||||
static IViewHandler ListenForInvalidation(IView view)
|
||||
static IViewHandler ListenForInvalidation(IView view)
|
||||
{
|
||||
var handler = Substitute.For<IViewHandler>();
|
||||
view.Handler = handler;
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
using Android.Views;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Android.Graphics.Drawables;
|
||||
using Android.Views;
|
||||
using Android.Widget;
|
||||
using Microsoft.Maui.Graphics;
|
||||
using AView = Android.Views.View;
|
||||
using System;
|
||||
using AButton = AndroidX.AppCompat.Widget.AppCompatButton;
|
||||
using ATextAlignment = Android.Views.TextAlignment;
|
||||
using Android.Graphics.Drawables;
|
||||
using Android.Widget;
|
||||
using System.Threading.Tasks;
|
||||
using AView = Android.Views.View;
|
||||
|
||||
namespace Microsoft.Maui.Handlers
|
||||
{
|
||||
|
@ -167,7 +167,7 @@ namespace Microsoft.Maui.Handlers
|
|||
{
|
||||
textSize = !string.IsNullOrEmpty(textView.Text) ? (int)textView.TextSize : 0;
|
||||
var icons = textView.GetCompoundDrawables();
|
||||
if(icons.Length > 1 && icons[1] != null)
|
||||
if (icons.Length > 1 && icons[1] != null)
|
||||
{
|
||||
OnSetImageSource(icons[1]);
|
||||
}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
using Android.Views;
|
||||
using System;
|
||||
using Android.Views;
|
||||
using Microsoft.Maui.Graphics;
|
||||
using AView = Android.Views.View;
|
||||
using System;
|
||||
using AButton = AndroidX.AppCompat.Widget.AppCompatButton;
|
||||
using ATextAlignment = Android.Views.TextAlignment;
|
||||
using AView = Android.Views.View;
|
||||
|
||||
namespace Microsoft.Maui.Handlers
|
||||
{
|
||||
|
|
|
@ -214,7 +214,7 @@ namespace Microsoft.Maui.Platform
|
|||
return false;
|
||||
});
|
||||
|
||||
if(parentFound != null)
|
||||
if (parentFound != null)
|
||||
{
|
||||
itemContentView?.CallOnClick();
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
using System;
|
||||
using System.Numerics;
|
||||
using System.Threading.Tasks;
|
||||
using Android.Graphics.Drawables;
|
||||
|
@ -9,12 +10,11 @@ using AndroidX.Core.View;
|
|||
using Microsoft.Maui.Essentials;
|
||||
using Microsoft.Maui.Graphics;
|
||||
using Microsoft.Maui.Handlers;
|
||||
using AColor = Android.Graphics.Color;
|
||||
using ALayoutDirection = Android.Views.LayoutDirection;
|
||||
using ATextDirection = Android.Views.TextDirection;
|
||||
using AView = Android.Views.View;
|
||||
using GL = Android.Opengl;
|
||||
using AColor = Android.Graphics.Color;
|
||||
using System;
|
||||
|
||||
namespace Microsoft.Maui.Platform
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче