Giter Site home page Giter Site logo

devchive / xamarin.forms.platform.avalonia Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhongzf/xamarin.forms.platform.avalonia

0.0 0.0 0.0 833 KB

Xamarin Forms platform implemented with Avalonia (A multi-platform .NET UI framework)

License: MIT License

C# 100.00%

xamarin.forms.platform.avalonia's Introduction

Xamarin.Forms.Platform.Avalonia

Xamarin Forms platform implemented with Avalonia (A multi-platform .NET UI framework)

Xamarin.Forms

Xamarin.Forms provides a way to quickly build native apps for iOS, Android, Windows and macOS, completely in C#.

Read more about the platform at https://www.xamarin.com/forms.

Avalonia

Avalonia is a WPF-inspired cross-platform XAML-based UI framework providing a flexible styling system and supporting a wide range of OSs: Windows (.NET Framework, .NET Core), Linux (GTK), MacOS, Android and iOS.

Read more about the framework at https://avaloniaui.net.

Getting Started (中文说明)

  1. Creating a new Avalonia project, read more about it at http://avaloniaui.net/docs/quickstart/create-new-project.

  2. You can find the packages here NuGet and install the package like this:

Install-Package Xamarin.Forms.Platform.Avalonia
  1. Build a Xamarin.Forms App, read more about it at https://docs.microsoft.com/en-us/xamarin/get-started/first-app.
  2. Add the new created Xamarin.Forms App project as project reference to your new created Avalonia project.
  3. Edit MainWindow.xaml.cs, add using:
using Xamarin.Forms.Platform.Avalonia;
  1. Change the base class of MainWindow to FormsApplicationPage, and add Forms.Init() and LoadApplication() method call, 'FormsGallery.App' in the code should be the name of your Xamarin.Forms App:
    public class MainWindow : FormsApplicationPage
    {
        public MainWindow()
        {
            InitializeComponent();
#if DEBUG
            this.AttachDevTools();
#endif

            Xamarin.Forms.Forms.Init();
            LoadApplication(new FormsGallery.App());
        }

        private void InitializeComponent()
        {
            AvaloniaXamlLoader.Load(this);
        }
    }

Screenshot

xamarin.forms.platform.avalonia's People

Contributors

zhongzf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.