This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Graphics; | |
using Xamarin.Forms; | |
using GColor = System.Graphics.Color; | |
namespace GraphicsControls | |
{ | |
public enum AvatarSize | |
{ | |
Small, | |
Large, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using CoreGraphics; | |
using Foundation; | |
using UIKit; | |
namespace Xamarin.Forms.Platform.iOS | |
{ | |
public class CarouselViewLayout : ItemsViewLayout | |
{ | |
readonly CarouselView _carouselView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem .\ -include bin,obj -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse } |