Skip to content

Instantly share code, notes, and snippets.

View juucustodio's full-sized avatar

Juliano Custódio juucustodio

View GitHub Profile
@juucustodio
juucustodio / SlidePage.xaml.cs
Created October 21, 2019 01:53
Example of setting page navigation animations for your Xamarin.Forms applications - http://julianocustodio.com/animationnavigationpage
using System;
using System.Collections.Generic;
using FormsControls.Base;
using Xamarin.Forms;
namespace DemoNavigation
{
public partial class SlidePage : ContentPage, IAnimationPage
{
public IPageAnimation PageAnimation { get; } = new SlidePageAnimation
@juucustodio
juucustodio / FadePage.xaml.cs
Created October 21, 2019 01:50
Example of setting page navigation animations for your Xamarin.Forms applications - http://julianocustodio.com/animationnavigationpage
using FormsControls.Base;
using Xamarin.Forms;
namespace DemoNavigation
{
public partial class FadePage : ContentPage, IAnimationPage
{
public IPageAnimation PageAnimation { get; } = new FadePageAnimation
{
Duration = AnimationDuration.Long,
@juucustodio
juucustodio / App.xaml.cs
Created October 20, 2019 19:09
Example of setting page navigation animations for your Xamarin.Forms applications - http://julianocustodio.com/animationnavigationpage
using FormsControls.Base;
using Xamarin.Forms;
namespace DemoNavigation
{
public partial class App : Application
{
public App()
{
InitializeComponent();
@juucustodio
juucustodio / AppDelegate.cs
Created October 20, 2019 18:56
Example of setting page navigation animations for your Xamarin.Forms applications - http://julianocustodio.com/animationnavigationpage
using Foundation;
using UIKit;
namespace DemoNavigation.iOS
{
[Register("AppDelegate")]
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
{
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
@juucustodio
juucustodio / MainActivity.cs
Created October 20, 2019 18:51
Example of setting page navigation animations for your Xamarin.Forms applications - http://julianocustodio.com/animationnavigationpage
using Android.App;
using Android.Content.PM;
using Android.Runtime;
using Android.OS;
namespace DemoNavigation.Droid
{
[Activity(Label = "DemoNavigation", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Demo.Models;
using Newtonsoft.Json;
namespace Demo.Services
@juucustodio
juucustodio / PopToRootAsync.cs
Created July 27, 2019 18:33
Example of how to work with MVVM pattern using the MVVMCoffee nuget package - http://julianocustodio.com/mvvmcoffee
await Navigation.PopToRootAsync();
@juucustodio
juucustodio / PopAsync.cs
Created July 27, 2019 18:32
Example of how to work with MVVM pattern using the MVVMCoffee nuget package - http://julianocustodio.com/mvvmcoffee
await Navigation.PopAsync();
@juucustodio
juucustodio / SetRootAsync.cs
Created July 27, 2019 18:32
Example of how to work with MVVM pattern using the MVVMCoffee nuget package - http://julianocustodio.com/mvvmcoffee
await Navigation.SetRootAsync<CustomerViewModel>();
@juucustodio
juucustodio / PushAsync.cs
Created July 27, 2019 18:31
Example of how to work with MVVM pattern using the MVVMCoffee nuget package - http://julianocustodio.com/mvvmcoffee
await Navigation.PushAsync<CustomerViewModel>(false);