Skip to content

Instantly share code, notes, and snippets.

View KirillAshikhmin's full-sized avatar

Kirill Ashikhmin KirillAshikhmin

View GitHub Profile
@KirillAshikhmin
KirillAshikhmin / ConverterFactory.cs
Last active November 25, 2020 14:25
Xamarin.Forms inline ValueConverter
using System;
using System.Collections;
using System.Diagnostics;
using System.Globalization;
using Xamarin.Forms;
namespace Project.UI.Converters
{
public static class ConverterFactory
{
@KirillAshikhmin
KirillAshikhmin / SmartObservableCollection.cs
Created October 21, 2020 21:07
Extended ObservableCollectionwith range actions and corrent notify calls. Use *WithNotify methods
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using JetBrains.Annotations;
@KirillAshikhmin
KirillAshikhmin / RelayCommand.cs
Created January 22, 2019 09:27
Task RelayCommand for Xamarin.Forms
using System;
using System.Threading.Tasks;
using System.Windows.Input;
using Xamarin.Forms;
using Xamarin.Forms.Internals;
namespace Project.Helpers
{
public class RelayCommand : ICommand {
readonly Func<Task> _tsk;
@KirillAshikhmin
KirillAshikhmin / BaseLayout.cs
Created January 19, 2019 20:45
Base layout for Xamarin.Forms
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Instamart.Helpers.FastUi.Layouts;
using Xamarin.Forms;
namespace Project.UI.Layouts {
public static class BaseLayoutExtensions {
using System;
using System.Collections.Generic;
using Xamarin.Forms;
namespace Binwell.UI.Layouts
{
public class PositionLayout : Layout<View>
{
public enum Positions
{