Skip to content

Instantly share code, notes, and snippets.

public class HonkOperation : IOperation
{
IControlModel _model = null;
public HonkOperation(IControlModel model)
{
_model = model;
}
public bool ChainedRollback { get; private set; } = false;
public class App : Application
{
public App()
{
new Bootstrapper().Init().Get<IStackRunner>().Run(TeslaDefinition.Stacks.Authentication);
}
public class NavigationContainer : INavigationContainer
{
private readonly NavigationPage _page = null;
public event EventHandler<IViewNavigationArgs> OnPopped;
private Queue<object> _argQueue = new Queue<object>();
private AsyncLock _lock = new AsyncLock();
public string CurrentViewKey { get; set; }
public NavigationContainer(NavigationPage page)
{
public class Injection: IInjection
{
private static ContainerBuilder _builder = null;
private static IContainer Container { get; set; } = null;
private static IList<Type> _registered = new List<Type>();
public void Init()
{
public class AuthenticationStack : BaseStack
{
public AuthenticationStack(INavigationService navigationService)
: base(navigationService, new NavigationContainer(new NavigationPage()), Stacks.Authentication)
{
}
protected override void Map()
{
_navigationService.Map(nameof(Authentication.Pin), typeof(PinPage), typeof(PinViewModel));
namespace Mobile.Definition.ViewLocator
{
public enum Authentication
{
Pin = 0
}
public enum Main
{
Main = 0
public class BaseModel: Exrin.Framework.Model
{
public BaseModel(IDisplayService displayService, IApplicationInsights applicationInsights, IErrorHandlingService errorHandlingService, IModelState modelState)
:base(displayService, applicationInsights, errorHandlingService, modelState)
{
}
}
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Mobile.Base.BaseView">
</ContentPage>
public partial class BaseView : ContentPage, IView
{
public BaseView()
public class BaseViewModel : Exrin.Framework.ViewModel
{
public BaseViewModel(IDisplayService displayService, INavigationService navigationService,
IErrorHandlingService errorHandlingService, IStackRunner stackRunner, IVisualState visualState)
: base(displayService, navigationService, errorHandlingService, stackRunner, visualState)
{
}
}
var animation = new Animation(callback: d => grid.StatusBar.WidthRequest = d,
start: 0,
end: grid.Width,
easing: Easing.Linear);
animation.Commit(grid, MoveAnimation, rate: Convert.ToUInt32(jumpCount), length: Convert.ToUInt32(Timeout), finished: (length, result) =>
{
if (IsRunning)
{
grid.StatusBar.BackgroundColor = Color.Red;