To reuse templates simply copy these files to the appropriate location
~Library/VisualStudio/<version>/Snippets
%AppData%\VisualStudio\<version>\Snippets
using System; | |
using System.ComponentModel; | |
using System.Runtime.CompilerServices; | |
namespace samples.core.Models | |
{ | |
public class RadioOption : INotifyPropertyChanged | |
{ | |
public RadioCategory Category { get; } | |
public string Title { get; } |
using DryIoc; | |
using Prism; | |
using Prism.DryIoc; | |
using Prism.Ioc; | |
using Prism.Logging; | |
using Xamarin.Forms; | |
namespace PrismForms | |
{ | |
public partial class App : PrismApplication |
<?xml version="1.0" encoding="utf-8"?> | |
<prism:PrismApplication xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="PrismForms.App" xmlns:prism="clr-namespace:Prism.DryIoc;assembly=Prism.DryIoc.Forms"> | |
<prism:PrismApplication.Resources> | |
<!-- Application resource dictionary --> | |
<ResourceDictionary> | |
</ResourceDictionary> | |
</prism:PrismApplication.Resources> | |
</prism:PrismApplication> |
/// <summary> | |
/// Logging provided by <see cref="Prism.Logging"/> | |
/// </summary> | |
/// <value>The logger</value> | |
public new ILoggerFacade Logger | |
{ | |
get { return this.Logger; } // Prism 7 | |
} | |
/// <summary> |
<?xml version="1.0" encoding="UTF-8"?> | |
<MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
x:Class="PrismForms.Views.AppShell" | |
xmlns:prism="clr-namespace:Prism.Mvvm;assembly=Prism.Forms" | |
prism:ViewModelLocator.AutowireViewModel="True"> | |
<MasterDetailPage.Master> | |
<!-- Be mindful of the Title and Icon properties; they are required --> | |
<NavigationPage Title="Required" Icon="slideout.png" BarTextColor="White" BarBackgroundColor="#87A3BA"> | |
<x:Arguments> |
using System; | |
using System.Collections.Generic; | |
using Prism.Navigation; | |
using Xamarin.Forms; | |
using Xamarin.Forms.PlatformConfiguration.iOSSpecific; | |
namespace PrismForms.Views | |
{ | |
public partial class AppShell : MasterDetailPage, IMasterDetailPageOptions | |
{ |
<?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="PrismForms.Views.HomePage" xmlns:prism="clr-namespace:Prism.Mvvm;assembly=Prism.Forms" prism:ViewModelLocator.AutowireViewModel="True" 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> |