This repository has been archived by the owner on May 1, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added Shapes to Core and Core Gallery samples Implemented basic Shapes on iOS * Added basic shapes Android implementation * Fixed UWP namespace conflicts * Fixed WPF namespace conflicts * Implemented basic shapes on UWP * Fixed UWP Ellipse and Rectangle size issue * Fixed Tizen Build * Changes to fix the build errors * Exclude shapes renderers from Tizen compilation * Implemented LineCap and LineJoin in Android and iOS * Implemented LineCap and LineJoin on UWP * Fixed build error * Updated Polygon sample * Fixed UWP Build error (namespace conflicts) * Fixed namespaces collision build error * Added "Shapes_Experimental" flag * Update UWP ShapeRenderer size logic * Updated iOS and Android ShapeRenderer size logic * Fixed UWP Build error * Added WPF implementation * Fixed Tizen Build error * Added Shapes macOS implementation * Fixed broken unit tests * Use the same Shapes classes between UWP and WPF backends * Fixed flipper macOS shape issue * Changed Shape class to be abstract * Added Polygon and Polyline unit tests * Added more Shapes Unit Tests * Moved Shapes to Xamarin.Forms.Shapes in Android, iOS and macOS * Moved Shapes to Xamarin.Forms.Shapes namespace in Windows (UWP and WPF) fixes #2452 (partially) fixes #9178
- Loading branch information
1 parent
50a209f
commit 9efe531
Showing
132 changed files
with
3,557 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
Xamarin.Forms.Controls/GalleryPages/ShapesGalleries/AutoSizeShapesGallery.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ContentPage | ||
xmlns="http://xamarin.com/schemas/2014/forms" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
x:Class="Xamarin.Forms.Controls.GalleryPages.ShapesGalleries.AutoSizeShapesGallery" | ||
Title="AutoSize Shapes Gallery"> | ||
<ContentPage.Content> | ||
<Grid | ||
RowSpacing="0"> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto" /> | ||
<RowDefinition /> | ||
<RowDefinition /> | ||
</Grid.RowDefinitions> | ||
<Label | ||
Text="The Ellipse below must occupy half of the available space." | ||
TextColor="White" | ||
BackgroundColor="Black"/> | ||
<Grid | ||
Grid.Row="1" | ||
BackgroundColor="Yellow"> | ||
<Ellipse | ||
StrokeThickness="4" | ||
Stroke="Blue" | ||
Fill="Green" /> | ||
</Grid> | ||
<Grid | ||
Grid.Row="2" | ||
BackgroundColor="Orange"/> | ||
</Grid> | ||
</ContentPage.Content> | ||
</ContentPage> |
10 changes: 10 additions & 0 deletions
10
Xamarin.Forms.Controls/GalleryPages/ShapesGalleries/AutoSizeShapesGallery.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Xamarin.Forms.Controls.GalleryPages.ShapesGalleries | ||
{ | ||
public partial class AutoSizeShapesGallery : ContentPage | ||
{ | ||
public AutoSizeShapesGallery() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
Xamarin.Forms.Controls/GalleryPages/ShapesGalleries/EllipseGallery.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ContentPage | ||
xmlns="http://xamarin.com/schemas/2014/forms" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
x:Class="Xamarin.Forms.Controls.GalleryPages.ShapesGalleries.EllipseGallery" | ||
Title="Ellipse Gallery"> | ||
<ContentPage.Resources> | ||
<ResourceDictionary> | ||
|
||
<Style TargetType="Ellipse"> | ||
<Setter Property="HorizontalOptions" Value="Start" /> | ||
</Style> | ||
|
||
</ResourceDictionary> | ||
</ContentPage.Resources> | ||
<ContentPage.Content> | ||
<ScrollView> | ||
<StackLayout | ||
Padding="12"> | ||
<Label | ||
Text="A basic Rectangle"/> | ||
<Ellipse | ||
Fill ="Red" | ||
WidthRequest ="150" | ||
HeightRequest ="50"/> | ||
<Label | ||
Text="A Circle"/> | ||
<Ellipse | ||
Stroke ="Red" | ||
StrokeThickness="4" | ||
WidthRequest ="150" | ||
HeightRequest ="150"/> | ||
<Label | ||
Text="An Ellipse with stroke"/> | ||
<Ellipse | ||
Stroke ="Red" | ||
StrokeThickness="4" | ||
WidthRequest ="150" | ||
HeightRequest ="50"/> | ||
<Ellipse | ||
Fill="DarkBlue" | ||
Stroke ="Red" | ||
StrokeThickness="4" | ||
WidthRequest ="150" | ||
HeightRequest ="50"/> | ||
<Label | ||
Text="An Ellipse with stroke dash"/> | ||
<Ellipse | ||
Fill="DarkBlue" | ||
Stroke ="Red" | ||
StrokeThickness="4" | ||
StrokeDashArray="1, 1" | ||
StrokeDashOffset="6" | ||
WidthRequest ="150" | ||
HeightRequest ="50"/> | ||
</StackLayout> | ||
</ScrollView> | ||
</ContentPage.Content> | ||
</ContentPage> |
13 changes: 13 additions & 0 deletions
13
Xamarin.Forms.Controls/GalleryPages/ShapesGalleries/EllipseGallery.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Xamarin.Forms.Internals; | ||
|
||
namespace Xamarin.Forms.Controls.GalleryPages.ShapesGalleries | ||
{ | ||
[Preserve(AllMembers = true)] | ||
public partial class EllipseGallery : ContentPage | ||
{ | ||
public EllipseGallery() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
Oops, something went wrong.