Skip to content

Instantly share code, notes, and snippets.

View LuisAlbertoPenaNunez's full-sized avatar
💪
Hey

Luis Pena LuisAlbertoPenaNunez

💪
Hey
View GitHub Profile
@LuisAlbertoPenaNunez
LuisAlbertoPenaNunez / listingItems.json
Last active October 24, 2017 00:18
Leona Store Listings
[
{
"listingItemType": "Announcement",
"listingOwner": {
"OwnerIdentityName": "Apple",
"BrandColorHex": "#fff"
},
"price": {
"amount": 999.99,
"currency": "USD"
@LuisAlbertoPenaNunez
LuisAlbertoPenaNunez / LandingPage.xaml
Last active August 28, 2017 15:17
Making of LandingPage XAML
<?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"
xmlns:prismBehaviors="clr-namespace:Prism.Behaviors;assembly=Prism.Forms"
xmlns:behaviors="clr-namespace:Behaviors;assembly=LeonaStore"
xmlns:template="clr-namespace:LeonaStore.Views.LandingPage.LandingPageTemplate;assembly=LeonaStore"
xmlns:cv="clr-namespace:Xamarin.Forms;assembly=Xamarin.Forms.CarouselView"
xmlns:dots="clr-namespace:LeonaStore.Components.CarouselDotsGenerator;assembly=LeonaStore"
BackgroundColor="{StaticResource leonaColor}"
@LuisAlbertoPenaNunez
LuisAlbertoPenaNunez / LandingPage.cs
Last active August 28, 2017 15:55
LandingPage ViewModel
using Prism.Commands;
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using Prism.Navigation;
using LeonaStore.Components.Gesturator.Template.LandingPage;
using System.Windows.Input;
using Xamarin.Forms;
using System;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace Behaviors
{
public class HideViewIf : Behavior<View>
{
View _associatedObject;
using System;
using System.Collections;
using ImageCircle.Forms.Plugin.Abstractions;
using Xamarin.Forms;
using System.Linq;
using CarouselDotsGenerator;
namespace LeonaStore.Components.CarouselDotsGenerator
{
public partial class CarouselDotsGenerator : StackLayout
namespace CarouselDotsGenerator
{
public interface IDot
{
void ChangeFillColorTo(Color to);
}
}
public partial class LittleDotView : CircleImage, IDot
{
public LittleDotView()
{
InitializeComponent();
}
public void ChangeFillColorTo(Color to)
{
FillColor = to;
<?xml version="1.0" encoding="UTF-8"?>
<control:CircleImage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:control="clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin.Abstractions"
x:Class="CarouselDotsGenerator.LittleDotView"
BorderColor = "Transparent"
BorderThickness = "0"
HeightRequest = "10"
WidthRequest = "10"
Aspect = "AspectFit"
<?xml version="1.0" encoding="utf-8" ?>
<xf:BottomBarPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Movies.Views.MoviesHomeTabbedPage"
xmlns:prism="clr-namespace:Prism.Mvvm;assembly=Prism.Forms"
prism:ViewModelLocator.AutowireViewModel="True"
FixedMode="false"
BarTheme="DarkWithAlpha"
xmlns:xf="clr-namespace:BottomBar.XamarinForms;assembly=BottomBar.XamarinForms"
xmlns:screens="clr-namespace:Movies.Views;assembly=Movies"
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class ShowingNowNavigationPage : NavigationPage
{
public ShowingNowNavigationPage(Page page) : base(page)
{
InitializeComponent();
}
}