Coder Social home page Coder Social logo

xamarin-forms-gtk-weather-sample's Introduction

Weather

Weather is a Xamarin.Forms GTK backend application that makes use OpenWeatherMap.org API, to demonstrate the possibilities of the new backend making use of a great variety of functionality.

WeatherApp

Xamarin.Forms App

Xamarin.Forms allows you to build native UIs for iOS, Android, Windows, macOS and Linux from a single, shared codebase. You can dive into mobile development with Xamarin.Forms by following our free self-guided learning from Xamarin University. This project exercises the following patterns and features:

Requirements

  • Visual Studio 2015 Update 3 (14.0 or higher) to compile C# 6 language features (or Visual Studio MacOS)
  • Xamarin add-ons for Visual Studio 3.2.1.64 or higher (available via the Visual Studio installer)
  • Visual Studio Community Edition is fully supported!

Setup

Download or clone the repository. This is a solution with two projects.

Rebuild the solution to get all neccesary NuGet packages.

Access to AppSettings.cs file available in the .NET Standard Library to introduce city.

Enjoy!

Licenses

This project is based on MyWeather.Forms by James Montemagno.

Clean and Rebuild

If you see build issues when pulling updates from the repo, try cleaning and rebuilding the solution.

Copyright and license

Code released under the MIT license.

xamarin-forms-gtk-weather-sample's People

Contributors

jsuarezruiz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

xamarin-forms-gtk-weather-sample's Issues

Problems starting sample application with new VS17 project structure

Hello there,

I have been trying for a while to get a simple GTK# + Xamarin.Forms app running, but am still failing to do so.

I'm running Arch Linux and Jetbrains Rider. The gtk-sharp package was installed via pacman and the libs are present.

I took the sample provided in this repo and noticed the old project structure, so I created a new .NET Core 3.1 App project in the solution. Then I added the Xamarin.Forms project, the NuGet packages (Xamarin.Forms, Xamarin.Forms.Platform.GTK) and also the gtk-sharp libs (from /usr/lib/mono/gtk-sharp-3.0; atk-sharp, cairo-sharp, gdk-sharp, gio-sharp, glib-sharp, gtk-dotnet, gtk-sharp, pango-sharp) as dependencies. I also copy over the existing Program.cs file.
At this point, everything needed should be added. So I go ahead and build&run.

The result is:
"Unhandled exception. System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Xamarin.Forms.Platform.GTK.FormsWindow'. Assembly: 'Xamarin.Forms.Platform.GTK, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'."

I am an absolute newbie with regards to GTK# and Xamarin.Forms and would appreciate any help. Thanks!

GTK crashes

GTK application closes on line Gtk.Application.Run() with exit code 1. Error in ExceptionManager.

I have tried to comment this line. So FormWindow appears but then closes, with the same error.

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.