Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate Predefined Shapes from Controls #275

Merged
merged 5 commits into from
Aug 28, 2022
Merged

Separate Predefined Shapes from Controls #275

merged 5 commits into from
Aug 28, 2022

Conversation

enisn
Copy link
Owner

@enisn enisn commented Aug 28, 2022

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

  • Type property of CheckBox is no longer used to define shape. You have to use IconGeometry property to define shape of checkbox. You can use PredefinedShapes like following example:
<input:CheckBox Text="Option 2 with Square Shape" Type="{x:Static input:PredefinedShapes.Square}" />

image

@enisn enisn merged commit 6be3dbf into develop Aug 28, 2022
@enisn enisn added the feature A new feature label Aug 28, 2022
@enisn enisn deleted the shapes-separations branch August 28, 2022 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant