This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Xamarin.Forms; | |
namespace YourAwesomeApp.Behaviors | |
{ | |
/// <summary> | |
/// Base class that extends on Xamarin Forms Behaviors. Based on the BehaviorBase from Prism repository | |
/// Git URL repo: https://github.com/PrismLibrary/Prism | |
/// </summary> | |
/// <typeparam name="T"></typeparam> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This way you can achieve an automatic process to create an array from n values on rows or columns | |
var rows = 3; // Add here how many rows you want | |
var columns = 5; // Add how manu columns you want | |
var array = new string [rows, columns]; | |
// ... Assign values to your array | |
for(var i = 0; i < rows; i++) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<ContentPage | |
Title="Manual Play Example" | |
xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:forms="clr-namespace:Lottie.Forms;assembly=Lottie.Forms" | |
x:Name="clickPage" | |
x:Class="AnimatedSVG.Views.ClickPlayPage"> | |
<ContentPage.Content> | |
<Grid> | |
<Grid.RowDefinitions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<ContentPage | |
Title="Autoplay Example" | |
xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:forms="clr-namespace:Lottie.Forms;assembly=Lottie.Forms" | |
x:Class="AnimatedSVG.Views.AutoPlayPage"> | |
<ContentPage.Content> | |
<Grid> | |
<Grid.RowDefinitions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Windows.Devices.Geolocation; | |
using Windows.Storage.Streams; | |
using Windows.UI.Xaml.Controls.Maps; | |
using Xamarin.Forms.Maps; | |
using Xamarin.Forms.Maps.UWP; | |
using Xamarin.Forms.Platform.UWP; | |
using XamarinLatinoMaps.Framework.Renderers; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Android.Content; | |
using Android.Gms.Maps; | |
using Android.Gms.Maps.Model; | |
using Android.Widget; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Xamarin.Forms; | |
using Xamarin.Forms.Maps; | |
using Xamarin.Forms.Maps.Android; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using CoreGraphics; | |
using Foundation; | |
using MapKit; | |
using ObjCRuntime; | |
using UIKit; | |
using Xamarin.Forms; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:local="clr-namespace:XamarinLatinoMaps" | |
xmlns:viewmodels="clr-namespace:XamarinLatinoMaps.ViewModels;assembly=XamarinLatinoMaps" | |
xmlns:maps="clr-namespace:Xamarin.Forms.Maps;assembly=Xamarin.Forms.Maps" | |
xmlns:behaviors="clr-namespace:XamarinLatinoMaps.Framework.Behaviors;assembly=XamarinLatinoMaps" | |
x:Class="XamarinLatinoMaps.MainPage"> | |
<ContentPage.BindingContext> | |
<viewmodels:MainPageViewModel></viewmodels:MainPageViewModel> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Runtime.CompilerServices; | |
using XamarinLatinoMaps.Models; | |
namespace XamarinLatinoMaps.ViewModels | |
{ | |
public class MainPageViewModel : INotifyPropertyChanged | |
{ | |
private List<CoffeeShop> _items; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Xamarin.Forms; | |
namespace XamarinLatinoMaps.Framework.Behaviors | |
{ | |
public class BindableBehavior<T> : Behavior<T> where T : BindableObject | |
{ | |
public T AssociatedObject { get; private set; } | |
protected override void OnAttachedTo(T visualElement) |