{"exec-mode":"default","platform":"iOS","uti":"com.xamarin.workbook","packages":[]}これは Xamarin Workbooks を使ってみるテストです。
この .workbook ファイルを、 Xamarin Inspector で File -> Open して再生すると iOS シミュレータで地図(MapKit)が表示できるはず。(あ、Mac でね)
| using System; | |
| using Xamarin.Forms; | |
| namespace SpacingTest | |
| { | |
| public class App | |
| { | |
| public static Page GetMainPage() | |
| { | |
| return new ContentPage |
| using System; | |
| using Android.App; | |
| using Android.Content; | |
| using Android.Runtime; | |
| using Android.Views; | |
| using Android.Widget; | |
| using Android.OS; | |
| using System.Reactive.Linq; | |
| using NDebug = System.Diagnostics.Debug; |
| public ReactiveProperty<$type$> $name$ { get; } = new ReactiveProperty<$type$>(); |
| open System | |
| type Sound = Z | D | K | |
| with | |
| override this.ToString() = | |
| match this with | |
| | Z -> "ズン" | |
| | D -> "ドコ" | |
| | K -> "キ・ヨ・シ!" |
{"exec-mode":"default","platform":"iOS","uti":"com.xamarin.workbook","packages":[]}これは Xamarin Workbooks を使ってみるテストです。
この .workbook ファイルを、 Xamarin Inspector で File -> Open して再生すると iOS シミュレータで地図(MapKit)が表示できるはず。(あ、Mac でね)
| <Application | |
| xmlns="http://xamarin.com/schemas/2014/forms" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
| x:Class="WorkingWithStyles.App"> | |
| <Application.Resources> | |
| <ResourceDictionary> | |
| <Color x:Key="Color1">#9CC9F5</Color> | |
| <Color x:Key="Color2">#8CC9F5</Color> | |
| <Color x:Key="LabelColor">{StaticResource Color1}</Color> |
| <?xml version="1.0" encoding="utf-8"?> | |
| <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| <PropertyGroup> | |
| <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |
| <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | |
| <ProjectGuid>{E5FEBCA7-6127-4002-B7B3-3EE4CC362B25}</ProjectGuid> | |
| <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | |
| <UseMSBuildEngine>true</UseMSBuildEngine> | |
| <OutputType>Library</OutputType> | |
| <RootNamespace>XFGoogleMapSample</RootNamespace> |
| protected override void OnCreate(Bundle bundle) | |
| { | |
| ToolbarResource = Resource.Layout.toolbar; | |
| TabLayoutResource = Resource.Layout.tabs; | |
| base.OnCreate(bundle); | |
| Window.SetSoftInputMode(SoftInput.AdjustResize); | |
| if (Build.VERSION.SdkInt >= BuildVersionCodes.Lollipop) | |
| { |