Skip to content

Instantly share code, notes, and snippets.

@brunoportess
brunoportess / Servico.cs
Last active February 16, 2018 13:03
BindingContext ViewModel Sample
namespace DocHouse.Models.Entities
{
public class Servico
{
public int Id { get; set; }
public string NomeServico { get; set; }
public string Imagem { get; set; }
public double Valor { get; set; }
}
}
@brunoportess
brunoportess / IShare.cs
Created May 14, 2018 11:26
Implementação de SHARE no xamarin forms
//interface do projeto core
public interface IShare
{
Task Show(string title, string message, string filePath);
}
<?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:prism="clr-namespace:Prism.Mvvm;assembly=Prism.Forms"
x:Class="AppCliente.Views.Ofertas.OfertasExclusivas"
xmlns:local="clr-namespace:AppCliente.Converters;assembly=AppCliente"
xmlns:template="clr-namespace:AppCliente.Views.Ofertas;assembly=AppCliente"
Title="Assinantes"
BackgroundColor="#FFFFFF">
<ContentPage.Resources>