https://github.com/zauberzeug/interfacebuilder
Simplifying Xamarin.Forms ui construction by using the builder pattern
https://github.com/zauberzeug/interfacebuilder
Last synced: 4 months ago
JSON representation
Simplifying Xamarin.Forms ui construction by using the builder pattern
- Host: GitHub
- URL: https://github.com/zauberzeug/interfacebuilder
- Owner: zauberzeug
- License: other
- Created: 2018-11-25T05:01:23.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-24T04:27:24.000Z (almost 7 years ago)
- Last Synced: 2025-01-14T08:40:54.803Z (12 months ago)
- Language: C#
- Size: 2.16 MB
- Stars: 4
- Watchers: 8
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# InterfaceBuilder
InterfaceBuilder is a handy wrapper around Xamrin.Forms to improve the writing of user interface code directly in C# (no XAML).
It's a combination of factory pattern (see [UI.cs](https://github.com/perpetual-mobile/InterfaceBuilder/blob/master/InterfaceBuilder/UI.cs)) and the builder pattern (extension methods defined mainly in [ContentConfiguration.cs](https://github.com/perpetual-mobile/InterfaceBuilder/blob/master/InterfaceBuilder/ContentConfiguration.cs)). So you can write:
```csharp
var ui = new UI();
MainPage = ui.Page("MainPage", ui.Stack().Vertical().With(
ui.Label("A"),
ui.Label("B"),
ui.Label("C"))
);
```
This package is used in several projects at Perpetual Mobile, licensed under APACHE LICENSE and is hopefully
useful to you.
We have no proper documentation jet but provide some examples in the Demo project. Have a look at [FundamentalsModule.cs](https://github.com/perpetual-mobile/InterfaceBuilder/blob/master/Demo/FundamentalsModule.cs) to see how we implemented this screen:

And to see how to add images look at [ImageModule.cs](https://github.com/perpetual-mobile/InterfaceBuilder/blob/master/Demo/ImageModule.cs):