Skip to content

Instantly share code, notes, and snippets.

Joe Meyer JoeM-RP

Block or report user

Report or block JoeM-RP

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Home.js
// @flow
import React, { Component } from 'react';
import {
StatusBar, View, AppState, NetInfo,
} from 'react-native';
import { Button } from 'Button';
import { Card } from 'Card';
import { Header } from 'Header';
import { Input } from 'Input';
View App.xaml.cs
/// <summary>
/// Logging provided by <see cref="Prism.Logging"/>
/// </summary>
/// <value>The logger</value>
public new ILoggerFacade Logger
{
get { return this.Logger; } // Prism 7
}
/// <summary>
View App.xaml.cs
using DryIoc;
using Prism;
using Prism.DryIoc;
using Prism.Ioc;
using Prism.Logging;
using Xamarin.Forms;
namespace PrismForms
{
public partial class App : PrismApplication
View RadioButtonView.xaml.cs
using System;
using System.Linq;
using System.Collections.Generic;
using samples.core.Models;
using Xamarin.Forms;
using Xamarin.Forms.PlatformConfiguration.iOSSpecific;
using System.Collections.ObjectModel;
namespace samples.core.Views
{
View ActionHandler.cs
using System;
using System.Reactive.Disposables;
using RxUIForms.Models;
using Xamarin.Forms;
namespace RxUIForms.Helpers
{
public static class ActionHandler
{
/// <summary>
View ReactiveUICommands.cs
/*
* Define Commands
*/
public ReactiveCommand ShowActionSheetCommand { get; }
public ReactiveCommand ShowAlertCommand { get; }
public ReactiveCommand<CopyItem, bool> SelectItemCommand { get; }
/* Omitted */
ShowAlertCommand = ReactiveCommand.CreateFromTask(async (arg) => await ShowAlert());
View HomePage.xaml
<?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="RxUIForms.Views.HomePage" Title="{Binding Title}">
<ContentPage.Content>
<StackLayout Padding="10,20">
<ListView SelectedItem="{Binding SelectedItem, Mode=TwoWay}" ItemsSource="{Binding CopyItems}">
<ListView.ItemTemplate>
<DataTemplate>
<TextCell Text="{Binding Title}" />
</DataTemplate>
</ListView.ItemTemplate>
View AppShellViewModel.cs
using System;
using Xamarin.Forms;
using Xamvvm;
namespace RxUIForms.ViewModels
{
public class AppShellViewModel : BasePageModelRxUI
{
/// <summary>
@JoeM-RP
JoeM-RP / AppShell.cs
Created Aug 14, 2018
RxUIForms.AppShell.cs
View AppShell.cs
using System;
using ReactiveUI;
using RxUIForms.ViewModels;
using Xamarin.Forms;
using Xamvvm;
namespace RxUIForms.Views
{
public class AppShell : MasterDetailPage, IBasePageRxUI<AppShellViewModel>
{
View RxUIForms.App.xaml.cs
using System;
using RxUIForms.ViewModels;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
using Xamvvm;
[assembly: XamlCompilation(XamlCompilationOptions.Compile)]
namespace RxUIForms
{
public partial class App : Application
You can’t perform that action at this time.