This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ImagePage : ContentPage | |
{ | |
public ImagePage() | |
{ | |
// Imageビューの生成 | |
var image = new Image | |
{ | |
// 画像を読み込んでSourceプロパティに設定 | |
Source = ImageSource.FromResource("ImageSample.Resources.Images.button_leftArrow.png"), | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Commit内容(メッセージ、著者)を書き換える方法 | |
$ git commit --amend -m "test test test" --author="my_new_name <new_name@example.com>" | |
メッセージ : test test test | |
著者 : my_new_name | |
メールアドレス : new_name@example.com | |
# 直前のコミットの打ち消し | |
git reset --soft HEAD^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 背景色の設定 | |
BackgroundColor = Color.White; | |
// 全体のレイアウト | |
var stackLayout = new StackLayout | |
{ | |
// 縦は真ん中に表示 | |
VerticalOptions = LayoutOptions.Center, | |
// 横は真ん中に表示 | |
HorizontalOptions = LayoutOptions.Center, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 全体のレイアウト | |
// レイアウトにスケールをかけているので、レイアウトの中のもの全てにスケールがかかる | |
var stackLayout = new StackLayout | |
{ | |
// 縦は真ん中に表示 | |
VerticalOptions = LayoutOptions.Center, | |
// 横は画面全体に広げる | |
HorizontalOptions = LayoutOptions.FillAndExpand, | |
// 背景色を設定 | |
BackgroundColor = Color.White, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
#region アニメーション用のボックスの生成 | |
// 移動値算出用のボックスを生成 | |
var boxViewBackground = new BoxView | |
{ | |
Color = Color.Transparent, | |
}; | |
// 前面アニメーション用のボックスを生成 | |
var boxViewFront = new BoxView |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 前面アニメーション用のボックスを生成 | |
var boxViewFront = new BoxView | |
{ | |
Color = Color.Blue, | |
}; | |
// 拡大縮小アニメ制御用のボタンを生成 | |
var buttonScale = new Button | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 前面アニメーション用のボックスを生成 | |
var boxViewFront = new BoxView | |
{ | |
Color = Color.Blue, | |
}; | |
// 回転アニメ制御用のボタンを生成 | |
var buttonRelRotate = new Button | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Xamarin.Forms; | |
using Xamarin.Forms.Maps; | |
namespace MapSample | |
{ | |
public class MapPage : ContentPage | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Activity(Label = "MapSample.Droid", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)] | |
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsApplicationActivity | |
{ | |
protected override void OnCreate(Bundle bundle) | |
{ | |
base.OnCreate(bundle); | |
global::Xamarin.Forms.Forms.Init(this, bundle); | |
// Xamarin.Forms.Mapsの初期化 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Register("AppDelegate")] | |
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate | |
{ | |
public override bool FinishedLaunching(UIApplication app, NSDictionary options) | |
{ | |
global::Xamarin.Forms.Forms.Init(); | |
// Xamarin.Froms.Mapsの初期化 | |
Xamarin.FormsMaps.Init(); |
OlderNewer