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

https://github.com/jsuarezruiz/xamarin.forms.composite

Tests and prototypes using Xamarin.Forms Composite Controls and ControlTemplate
https://github.com/jsuarezruiz/xamarin.forms.composite

composite controls controltemplate ui xamarin xamarin-forms

Last synced: 25 days ago
JSON representation

Tests and prototypes using Xamarin.Forms Composite Controls and ControlTemplate

Awesome Lists containing this project

README

        

# Xamarin.Forms Composite Controls

In this repository there are only some tests related to the idea of composite controls, have a **Template** property and be able to use **ControlTemplate** to customize a control.

![Composite Controls](images/xamarinforms-controltemplate.gif)

## Let's see more details!

For these tests we have created a Slider Composite control (composed of other Views that make up the control).

![Composite Control](images/composite-control.png)

We have the same visual appearance, properties and events. However, the control has a Template property that allows us to modify the ControlTemplate that defines the control.

We modify the Slider ControlTemplate:

```





```

And we use it:

```

```

The result:

![ControlTemplate](images/slider-controltemplate.png)

We can use XAML Hot Reload to adjust the appearance:

![Using XAML Hot Reload](images/xamarinforms-edit-controltemplate.gif)

Some **performance** related data (using Android):

Memory
* 127545344 (121MB) - Slider
* 127246336 (121MB) - Slider (Composite)

Startup time (Release AOT)
* 797ms - Slider
* 801ms - Slider (Composite)

## Feedback
You can create feedback in this repository. If you have any questions, please don't hesitate to create an issue.