Skip to content

Instantly share code, notes, and snippets.

View Pujolsluis's full-sized avatar
🙈
Let's Mobile

Luis Pujols Pujolsluis

🙈
Let's Mobile
View GitHub Profile
@Pujolsluis
Pujolsluis / MainActivity.cs
Created December 14, 2019 19:37
Added Experimental Flags for CarouselView and IndicatorView
global::Xamarin.Forms.Forms.SetFlags(new[] { "CarouselView_Experimental", "IndicatorView_Experimental" });
@Pujolsluis
Pujolsluis / MainPage.xaml
Created December 14, 2019 19:12
Remove Xamarin.Forms.CarouselView namespace from MainPage
xmlns:forms="clr-namespace:Xamarin.Forms;assembly=Xamarin.Forms.CarouselView"
@Pujolsluis
Pujolsluis / MainPage.cs
Last active November 11, 2019 16:55
try catch on InitializeComponent
public partial class MainPage : ContentPage
{
public SearchZonePage()
{
try
{
InitializeComponent();
}
catch(Exception ex)
{
@Pujolsluis
Pujolsluis / CultureInfoExample.cs
Created November 11, 2019 15:11
example of culture info invariant flag c#
time.ToString(@"mm\:ss",CultureInfo.InvariantCulture);
@Pujolsluis
Pujolsluis / CultureInfoExample.cs
Created November 11, 2019 15:10
example of culture info invariant flag c#
time.ToString(@"mm\:ss",CultureInfo.InvariantCulture);
@Pujolsluis
Pujolsluis / CultureInfoExample.cs
Created November 11, 2019 15:10
example of culture info invariant flag c#
time.ToString(@"mm\:ss",CultureInfo.InvariantCulture);
@Pujolsluis
Pujolsluis / ActionsPage.xaml
Created October 28, 2019 00:42
Added Confirm Actions and More Actions Buttons.
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="FicusUIChallenge.Views.ActionsPage"
xmlns:behaviors="clr-namespace:FicusUIChallenge.Helpers.Behaviors"
xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core"
ios:Page.UseSafeArea="true"
xmlns:yummy="clr-namespace:Xamarin.Forms.PancakeView;assembly=Xamarin.Forms.PancakeView">
<ContentPage.Content>
<ScrollView>
@Pujolsluis
Pujolsluis / ActionsPage.xaml
Created October 28, 2019 00:38
Added Static Action Items to the layout
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="FicusUIChallenge.Views.ActionsPage"
xmlns:behaviors="clr-namespace:FicusUIChallenge.Helpers.Behaviors"
xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core"
ios:Page.UseSafeArea="true"
xmlns:yummy="clr-namespace:Xamarin.Forms.PancakeView;assembly=Xamarin.Forms.PancakeView">
<ContentPage.Content>
<ScrollView>
@Pujolsluis
Pujolsluis / ActionsPage.xaml
Created October 28, 2019 00:25
Adding Base Grid and Labels for the ActionPage Layout
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="FicusUIChallenge.Views.ActionsPage"
xmlns:behaviors="clr-namespace:FicusUIChallenge.Helpers.Behaviors"
xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core"
ios:Page.UseSafeArea="true"
xmlns:yummy="clr-namespace:Xamarin.Forms.PancakeView;assembly=Xamarin.Forms.PancakeView">
<ContentPage.Content>
<ScrollView>
@Pujolsluis
Pujolsluis / PrintService.cs
Created July 29, 2019 19:19
PrintService completed iOS with Print PDF method
using System;
using System.IO;
using CoreGraphics;
using FormsPrintSample.Services;
using Foundation;
using UIKit;
namespace FormsPrintSample.iOS.Services
{