All Projects → jsuarezruiz → xamarin-forms-gui.cs

jsuarezruiz / xamarin-forms-gui.cs

Licence: other
Xamarin.Forms gui.cs Backend

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to xamarin-forms-gui.cs

Flexbutton
Flexible button control for Xamarin.Forms
Stars: ✭ 245 (+231.08%)
Mutual labels:  xamarin-forms
FilePicker
FilePicker for Xamarin.Forms
Stars: ✭ 14 (-81.08%)
Mutual labels:  xamarin-forms
xappium.uitest
Xappium.UITest is a UITest helper framework built on top of Appium. This aims at making it easier to write and run UI Tests.
Stars: ✭ 60 (-18.92%)
Mutual labels:  xamarin-forms
Whatsappui
WhatsApp UI in Xamarin.Forms
Stars: ✭ 251 (+239.19%)
Mutual labels:  xamarin-forms
DotNetGraphQL
A sample demonstrating how to create a GraphQL Backend in .NET and consume it from a .NET mobile app created using Xamarin
Stars: ✭ 78 (+5.41%)
Mutual labels:  xamarin-forms
i18n-xamarin-forms
Xamarin Localization Library for Xamarin/Xamarin.Forms
Stars: ✭ 17 (-77.03%)
Mutual labels:  xamarin-forms
Animationnavigationpage
AnimationNavigationPage is a NavigationPage with custom transitions animation effects.
Stars: ✭ 235 (+217.57%)
Mutual labels:  xamarin-forms
XamarinFormsPinView
PIN keyboard for Xamarin.Forms.
Stars: ✭ 83 (+12.16%)
Mutual labels:  xamarin-forms
Xamarin
Sample Xamarin projects
Stars: ✭ 33 (-55.41%)
Mutual labels:  xamarin-forms
HackerNews
A .NET MAUI app for displaying the top posts on Hacker News that demonstrates text sentiment analysis gathered using artificial intelligence
Stars: ✭ 184 (+148.65%)
Mutual labels:  xamarin-forms
Connectivityplugin
Connectivity Plugin for Xamarin and Windows
Stars: ✭ 253 (+241.89%)
Mutual labels:  xamarin-forms
XamarinForms.VisualDebug
A library and client app to view the visual heirarchy of your Xamarin app pages as an interactive tree diagram at runtime
Stars: ✭ 22 (-70.27%)
Mutual labels:  xamarin-forms
TinyPubSub
Worlds smallest pub/sub thingy created mostly for Xamarin Forms but should also work else where...
Stars: ✭ 23 (-68.92%)
Mutual labels:  xamarin-forms
Aiforms.effects
AiForms.Effects for Xamarin.Forms
Stars: ✭ 245 (+231.08%)
Mutual labels:  xamarin-forms
sketch360
Cross-Platform 360 Degree Panoramic Sketching App
Stars: ✭ 37 (-50%)
Mutual labels:  xamarin-forms
Magicgradients
Draw breathtaking backgrounds in your Xamarin.Forms application. It's a kind of magic.
Stars: ✭ 236 (+218.92%)
Mutual labels:  xamarin-forms
TextMood
A Xamarin + IoT + Azure sample that detects the sentiment of incoming text messages, performs sentiment analysis on the text, and changes the color of a Philips Hue lightbulb
Stars: ✭ 52 (-29.73%)
Mutual labels:  xamarin-forms
Xamarin.Forms-Succinctly
This is the companion repo for Xamarin.Forms Succinctly by Alessandro Del Sole. Published by Syncfusion.
Stars: ✭ 44 (-40.54%)
Mutual labels:  xamarin-forms
xamarin-forms-statusbar
Xamarin.Forms Effect to manage the StatusBar BackgroundColor.
Stars: ✭ 16 (-78.38%)
Mutual labels:  xamarin-forms
Xamarin.Forms.MultiSelectListView
☑️ Select multiple rows in a listview with xamarin.forms
Stars: ✭ 61 (-17.57%)
Mutual labels:  xamarin-forms

Xamarin.Forms gui.cs Backend

gui.cs is a simple UI toolkit for .NET, .NET Core and Mono and works on both Windows and Linux/Unix created by Miguel de Icaza.

This project is a small Xamarin.Forms backend of gui.cs. Yes, create console Apps with C# and XAML!.

Status

It is a project in progress where there is currently implementation of:

  • Alert
  • Basic Layouts
  • Button
  • Label
  • ListView
  • ProgressBar
  • Switch

In progress:

  • Frame
  • Editor
  • ScrollView

Remain pending:

  • HexView
  • Menu

Example App

Here is the complete source code to a Login sample. We start with a simple class where initialize gui.cs and Xamarin.Forms:

public class Program
{
    public static void Main()
    {
        Application.Init();
        Forms.Init();
        var app = new App();
        var window = new FormsWindow("Xamarin.Forms gui.cs Backend");
        window.LoadApplication(app);
        Application.Run();
    }
}

Where App is an Application of Xamarin.Forms:

public class App : Xamarin.Forms.Application
{
    public App()
    {
        MainPage = new MainPage();
    }
}

And MainPage is a just a Xamarin.Forms XAML ContentPage:

<StackLayout>
    <Label 
        Text="Login"
        Margin="0, 12"/>
    <Label 
        Text="Username" />
    <Entry />
    <Label 
        Text="Password" />
    <Entry 
        IsPassword="True" />
    <Switch />
    <Button
        Text="Login"/>
</StackLayout>

As in any Xamarin.Forms App, you can create the entire UI in C# code.

public MainPageCS()
{
    var panel = new StackLayout();

    var userNameLabel = new Xamarin.Forms.Label
    {
        Text = "Username:"
    };
    panel.Children.Add(userNameLabel);

    var userNameEntry = new Entry();
    panel.Children.Add(userNameEntry);


    var passwordLabel = new Xamarin.Forms.Label
    {
        Text = "Password:"
    };
    panel.Children.Add(passwordLabel);

    var passwordEntry = new Entry
    {
        IsPassword = true
    };
    panel.Children.Add(passwordEntry);

    var loginButton = new Xamarin.Forms.Button
    {
        Text = "Login"
    };
    panel.Children.Add(loginButton);

    Content = panel;
}

Contributing

This project is open source and I love merging PRs. Try to file issues for things that you want to work on before you start the work so that there's no duplicated effort. If you just want to help out, check out the issues and dive in!.

Copyright and license

Code released under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].