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
public class WebViewExtended : WebView { | |
public static BindableProperty TotalPagesProperty = | |
BindableProperty.Create (nameof (TotalPages), typeof (int), typeof (WebViewExtended)); | |
public int TotalPages { | |
get => (int) GetValue (TotalPagesProperty); | |
set => SetValue (TotalPagesProperty, value); | |
} | |
public static BindableProperty CurrentPageProperty = |
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
public partial class FirstViewSample : MvxViewController | |
{ | |
public FirstViewSample() : base("FirstView", null) | |
{ | |
} | |
public override void ViewDidLoad() | |
{ | |
base.ViewDidLoad(); |
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
public class LazyPage : ContentPage { | |
LazyView<EntryView> lazyView; | |
public LazyPage() { | |
Content = new LazyView<EntryView>{IsLoading = true}.Assign(out lazyView); | |
} | |
protected override async void OnAppearing() { | |
base.OnAppearing(); | |
await Task.Delay(50); | |
lazyView.IsLoading = false; | |
} |
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
//original: https://github.com/ChasakisD/XFShimmerLayout/blob/master/src/XFShimmerLayout/Extensions/SkiaExtensions.cs | |
public static class PointsExtension{ | |
public static IEnumerable<Point> ToPoints(this double angle) | |
{ | |
var d = Math.Pow(2, .5); | |
var eps = Math.Pow(2, -52); | |
var finalAngle = angle % 360; | |
var startPointRadians = (180 - finalAngle).ToRadians(); |