Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Automated dotnet-format update (#14705)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Oct 7, 2021
1 parent 833b1bf commit 01206f5
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 75 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Xamarin.Forms.Controls.Issues
{
[Issue(IssueTracker.Github, 13037, "[Bug] Placeholder text in Editor control does not wrap text on UWP",
[Issue(IssueTracker.Github, 13037, "[Bug] Placeholder text in Editor control does not wrap text on UWP",
PlatformAffected.UWP)]
public partial class Issue13037 : TestContentPage
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,86 +9,86 @@ namespace Xamarin.Forms.Controls.Issues
[Issue(IssueTracker.Github, 14528, "[Bug] [iOS] SwipeView shifted in direction of swipe permanently", PlatformAffected.iOS)]
public class Issue14528 : TestContentPage
{
public Issue14528()
{
Title = "Issue 14528";
}
public Issue14528()
{
Title = "Issue 14528";
}

protected override void Init()
{
var listView = new Xamarin.Forms.ListView
{
HasUnevenRows = true,
IsPullToRefreshEnabled = true,
SelectionMode = ListViewSelectionMode.Single,
SeparatorVisibility = SeparatorVisibility.None,
ItemsSource = GetListViewItems(),
ItemTemplate = new DataTemplate(() =>
{
var swipeView = new Xamarin.Forms.SwipeView
{
Margin = 0,
Padding = 5,
BackgroundColor = Color.Gray,
Content = new Frame
{
Padding = 0,
BackgroundColor = Color.DarkGray,
Content = new Label
{
Text = "Swipe to Left",
Margin = new Thickness(10, 30)
}
}
};
protected override void Init()
{
var listView = new Xamarin.Forms.ListView
{
HasUnevenRows = true,
IsPullToRefreshEnabled = true,
SelectionMode = ListViewSelectionMode.Single,
SeparatorVisibility = SeparatorVisibility.None,
ItemsSource = GetListViewItems(),
ItemTemplate = new DataTemplate(() =>
{
var swipeView = new Xamarin.Forms.SwipeView
{
Margin = 0,
Padding = 5,
BackgroundColor = Color.Gray,
Content = new Frame
{
Padding = 0,
BackgroundColor = Color.DarkGray,
Content = new Label
{
Text = "Swipe to Left",
Margin = new Thickness(10, 30)
}
}
};
swipeView.RightItems.Add(new SwipeItem { Text = "B1", BackgroundColor = Color.Red });
swipeView.RightItems.Add(new SwipeItem { Text = "B2", BackgroundColor = Color.Blue });
swipeView.RightItems.Add(new SwipeItem { Text = "B3", BackgroundColor = Color.Green });
swipeView.RightItems.Add(new SwipeItem { Text = "B1", BackgroundColor = Color.Red });
swipeView.RightItems.Add(new SwipeItem { Text = "B2", BackgroundColor = Color.Blue });
swipeView.RightItems.Add(new SwipeItem { Text = "B3", BackgroundColor = Color.Green });
return new ViewCell
{
View = new Frame
{
Padding = 0,
Margin = new Thickness(4, 2),
BorderColor = Color.Transparent,
BackgroundColor = Color.Transparent,
Content = swipeView
}
};
})
};
return new ViewCell
{
View = new Frame
{
Padding = 0,
Margin = new Thickness(4, 2),
BorderColor = Color.Transparent,
BackgroundColor = Color.Transparent,
Content = swipeView
}
};
})
};

var description = new Label
{
Padding = 12,
Text = "Rapidly swipe multiple times, if the SwipeView maintain the same position, the test has passed."
};
var description = new Label
{
Padding = 12,
Text = "Rapidly swipe multiple times, if the SwipeView maintain the same position, the test has passed."
};

var content = new StackLayout();
var content = new StackLayout();

content.Children.Add(description);
content.Children.Add(listView);
content.Children.Add(description);
content.Children.Add(listView);

Content = content;
}
Content = content;
}

List<string> GetListViewItems()
{
return new List<string>
{
"Item 1",
"Item 2",
"Item 3",
"Item 4",
"Item 5",
"Item 6",
"Item 7",
"Item 8",
"Item 9",
"Item 10"
};
}
}
List<string> GetListViewItems()
{
return new List<string>
{
"Item 1",
"Item 2",
"Item 3",
"Item 4",
"Item 5",
"Item 6",
"Item 7",
"Item 8",
"Item 9",
"Item 10"
};
}
}
}

0 comments on commit 01206f5

Please sign in to comment.