Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stormlion227/shapecontrol.forms

Xamarin.Forms plugin to draw shapes such as circle, rounded rectangle, oval and so on.
https://github.com/stormlion227/shapecontrol.forms

android border border-color border-radius circle controls corner-radius draw-shapes effects gradient ios nuget oval rounded-rectangles roundrect shape skiasharp uwp xamarin-forms

Last synced: about 1 month ago
JSON representation

Xamarin.Forms plugin to draw shapes such as circle, rounded rectangle, oval and so on.

Awesome Lists containing this project

README

        

# ShapeControl.Forms

Xamarin.Forms plugin to draw shapes such as circle, rounded rectangle, oval and so on.

Supports Android, iOS and Unified Windows Platform (UWP, UAP).

[![NuGet](https://img.shields.io/nuget/v/ShapeControl.Forms.svg)](https://www.nuget.org/packages/ShapeControl.Forms/)

## Features

* Circle
* Oval
* RoundedRect
* Borderless Entry (SSEntry)
* Borderless Editor (SSEditor)
* Borderless Picker (SSPicker)
* Borderless DatePicker (SSDatePicker)
* Effects by using [SkiaSharp library](https://www.nuget.org/packages/SkiaSharp.Views.Forms).

## Support Platforms

* iOS 8+
* Android
* Universal Windows Platform (Win10/UWP)

## Setup
Install the [nuget package](https://www.nuget.org/packages/ShapeControl.Forms/) in portable and all platform specific projects..

#### Android
In MainActivity.cs file
```cs
Stormlion.ShapeControl.Droid.Platform.Init(this);
```

#### iOS
In AppDelegate.cs file
```cs
Stormlion.ShapeControl.iOS.Platform.Init();
```

#### UWP
In App.xaml.cs file
```cs
List assebliesToInclude = new List();

assebliesToInclude.Add(typeof(Stormlion.ShapeControl.UWP.Platform).GetTypeInfo().Assembly);

Xamarin.Forms.Forms.Init(e, assebliesToInclude);
```
## Usage

### Circle Example

```xaml





```

### Oval with Blue Solid Color

```xaml





```

### RoundRect with Gridient Color

```xaml








0
0




255
0







0
1


Clamp







```

### Borderless Entry

```xaml

```

## Contributions
Contributions are welcome!