Skip to content

Instantly share code, notes, and snippets.

View raver99's full-sized avatar

Roland Huhn raver99

  • Timisoara
View GitHub Profile
@raver99
raver99 / CustomRefreshViewRenderer.cs
Created February 4, 2020 14:22
Workaround for Xamarin CollectionView + Refresh View + Header Issue (https://github.com/xamarin/Xamarin.Forms/issues/8282)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using MyProject.iOS.Renderers;
using UIKit;
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;
using Xamarin.Forms.PlatformConfiguration.iOSSpecific;
using VisualElement = Xamarin.Forms.VisualElement;
@raver99
raver99 / ExecuteOnceAsyncCommand.cs
Created November 17, 2021 12:17
ExecuteOnceAsyncCommand
//based on AsyncCommand -> https://github.com/jamesmontemagno/mvvm-helpers/blob/master/MvvmHelpers/Commands/AsyncCommand.cs
public class ExecuteOnceAsyncCommand : IAsyncCommand
{
private bool isBusy = false;
readonly Func<Task> execute;
readonly Func<object, bool>? canExecute;
readonly Action<Exception>? onException;
readonly bool continueOnCapturedContext;
{
"version": "1.8",
"isForce": true,
"updateText": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
"displayUpdatePopupCount": 3,
"displayUpdatePopupIntervalInSeconds": 120
}