enisn / Xamarin.Forms.InputKit

CheckBox, Radio Button, Labeled Slider, Dropdowns etc.
MIT License
588 stars 100 forks source link

Separate Predefined Shapes from Controls #275

Closed enisn closed 2 years ago

enisn commented 2 years ago

Introducing Predefined shapes.

PredefinesShapes is a class that allow you to access shapes which is used in CmsKit and existing shapes can be used across controls.

i.e. RadioButton can used Check shapes of Checkbox as selected icon with following code:

<input:RadioButton SelectedIconGeomerty="{x:Static input:PredefinedShapes.Check}"  Text="Option 3 with Check Shape"/>

image

Breaking-Change

<input:CheckBox Text="Option 2 with Square Shape" Type="{x:Static input:PredefinedShapes.Square}" />

image