Skip to content

Instantly share code, notes, and snippets.

View jsuarezruiz's full-sized avatar
🏠
Working from home

Javier Suárez jsuarezruiz

🏠
Working from home
View GitHub Profile
using System.Graphics;
using Xamarin.Forms;
using GColor = System.Graphics.Color;
namespace GraphicsControls
{
public enum AvatarSize
{
Small,
Large,
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Threading;
using System.Threading.Tasks;
using Foundation;
using UIKit;
namespace Xamarin.Forms.Platform.iOS
<ContentPage.Resources>
<ResourceDictionary>
<Style x:Key="LRTStyle" TargetType="Label">
<Setter Property="AbsoluteLayout.LayoutBounds" Value="0, 0, 100, 100" />
</Style>
<Style x:Key="RTLTStyle" TargetType="Label">
<Setter Property="AbsoluteLayout.LayoutBounds" Value="0, 1, 100, 100" />
</Style>
</ResourceDictionary>
</ContentPage.Resources>
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
using System.Linq;
using System.Collections.ObjectModel;
using System.Collections.Generic;
using System.ComponentModel;
using System.Collections.Specialized;
using System;
#if UITEST
using System;
using CoreGraphics;
using Foundation;
using UIKit;
namespace Xamarin.Forms.Platform.iOS
{
public class CarouselViewLayout : ItemsViewLayout
{
readonly CarouselView _carouselView;
My Visual Studio for macOS addins:
- App Center (https://github.com/jsuarezruiz/VS4Mac-AppCenter): VS4Mac addin to manage Apps in Visual Studio App Center.
- Asset Studio (https://github.com/jsuarezruiz/VS4Mac-AssetStudio): VS4Mac addin with functionality related to assets management.
- Color Helper (https://github.com/jsuarezruiz/VS4Mac-ColorHelper): VS4Mac addin to add some color helper tools.
- GitHistory (https://github.com/jsuarezruiz/VS4Mac-GitHistory): Quickly browse the history of a file from any git repository directly from VS4Mac.
- LottiePlayer (https://github.com/jsuarezruiz/VS4Mac-LottiePlayer): VS4Mac addin to Preview Lottie json files.
- Open Terminal (https://github.com/jsuarezruiz/VS4Mac-OpenTerminal): VS4Mac addin to open a terminal from the IDE.
- Samples Importer (https://github.com/jsuarezruiz/VS4Mac-SamplesImporter): Samples Importer is a Visual Studio for macOS addin to explorer and directly open Xamarin samples from the IDE.
- SkiaSharpFiddle (https://github.com/jsuarezruiz/VS4Ma
@jsuarezruiz
jsuarezruiz / livesharp-xamarin-forms
Created August 20, 2018 17:09
LiveSharp with Xamarin.Forms
Install LiveSharp extension: https://marketplace.visualstudio.com/items?itemName=ionoy.LiveSharp
Install LiveSharp NuGet package: https://www.nuget.org/packages/livesharp
1) add [assembly:LiveSharpInjectRuleBaseClass("Xamarin.Forms.ContentPage", "Xamarin.Forms.ContentView")] attribute to App.xaml.cs
2) add [LiveSharpStart] attribute to App constructor
3) add this code to the end of App constructor
LiveSharpContext.AddUpdateHandler(ctx => {
var instances = ctx.UpdatedMethods
.SelectMany(method => method.Instances)
.Distinct()
@jsuarezruiz
jsuarezruiz / cleanup-project-output.ps1
Created December 21, 2017 20:31
Clean Bin/Obj Folders
Get-ChildItem .\ -include bin,obj -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse }