SlideShare a Scribd company logo
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
button.Click += async (sender, e) =>
{
var client = new HttpClient();
using (var reader = new StreamReader(await client.GetStreamAsync("xxx")))
{
var deserializer = new XmlSerializer(typeof(Rss));
var latest = deserializer.Deserialize(reader) as Rss;
var feed = latest.Channel.Items
.Where(x => x.Link.Contains("xamarin"))
.Select(x => x.Title).ToList();
}
};
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
[Register ("TodoListViewController")]
partial class TodoListViewController
{
[Outlet]
[GeneratedCode ("iOS Designer", "1.0")]
UIButton LoginButton { get; set; }
...
}
LoginButton.TouchUpInside += (object sender,
EventArgs e) => {
// TODO: add logic here
}
ViewController.designer.cs
ViewController.cs
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
public class MainActivity : Activity
{
...
void OnClick(object sender, EventArgs e)
{
var intent = new Intent(this, typeof(Activity2));
base.StartActivity(intent);
}
}
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage x:Class="App1.Views.XamlPage"
...
Title="Login Page">
<StackLayout Padding="8" Spacing="4">
<Image Source="/Images/Xamagon.png"
HeightRequest="300"
WidthRequest="300" />
<Label FontSize="Large"
Text="Xamarin.Forms Login Page" />
<Entry x:Name="entry"
Text="{Binding Name}" />
<Button x:Name="loginButton"
Clicked="LoginButton_Clicked"
Text="Login" />
</StackLayout>
</ContentPage>
public class CSharpPage : ContentPage
{
public CSharpPage()
{
var image = new Image { ... };
var label = new Label {... };
var entry = new Entry { ... };
var loginButton = new Button {... };
loginButton.Clicked += LoginButton_Clicked;
Title = "Login Page";
Content = new StackLayout
{
Children =
{
image,
label,
entry,
loginButton
},
};
}
}
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法
2018年のXamarinの概要と活用方法

More Related Content

KEY
Scala on Your Phone
PDF
The Ring programming language version 1.5.4 book - Part 42 of 185
PPTX
Angular 2.0 Views
DOC
Quanlycanbo
PDF
Cycle.js: Functional and Reactive
PDF
10 Lessons Learned from using Kafka in 1000 Scala microservices - Scalar Online
PDF
Javascript 攻佔桌面應用程式:使用 electron
PPTX
Introduction to jQuery - The basics
Scala on Your Phone
The Ring programming language version 1.5.4 book - Part 42 of 185
Angular 2.0 Views
Quanlycanbo
Cycle.js: Functional and Reactive
10 Lessons Learned from using Kafka in 1000 Scala microservices - Scalar Online
Javascript 攻佔桌面應用程式:使用 electron
Introduction to jQuery - The basics

What's hot (20)

PDF
Elm: give it a try
PDF
Phoenix + Reactで 社内システムを 密かに作ってる
PDF
Functional Reactive Programming - RxSwift
PDF
Use Kotlin scripts and Clova SDK to build your Clova extension
PDF
Tools and Projects Dec 2018 Edition
PDF
Reactive Programming Patterns with RxSwift
PDF
Reactive programming with RxSwift
PDF
Restful services-slides
PPTX
Angular 2 Architecture (Bucharest 26/10/2016)
PDF
(안드로이드 개발자를 위한) 오픈소스 라이브러리 사용 가이드
PPTX
“SOLID principles in PHP – how to apply them in PHP and why should we care“ b...
PDF
레진코믹스가 코틀린으로 간 까닭은?
PDF
Kotlin: Let's Make Android Great Again
PDF
Reactive Programming with RxSwift
PDF
Dependency injection in Scala
PPTX
Everyday's JS
PDF
Swift & ReactiveX – Asynchronous Event-Based Funsies with RxSwift
PDF
Introduction to ReasonML
PDF
Perkenalan ReasonML
Elm: give it a try
Phoenix + Reactで 社内システムを 密かに作ってる
Functional Reactive Programming - RxSwift
Use Kotlin scripts and Clova SDK to build your Clova extension
Tools and Projects Dec 2018 Edition
Reactive Programming Patterns with RxSwift
Reactive programming with RxSwift
Restful services-slides
Angular 2 Architecture (Bucharest 26/10/2016)
(안드로이드 개발자를 위한) 오픈소스 라이브러리 사용 가이드
“SOLID principles in PHP – how to apply them in PHP and why should we care“ b...
레진코믹스가 코틀린으로 간 까닭은?
Kotlin: Let's Make Android Great Again
Reactive Programming with RxSwift
Dependency injection in Scala
Everyday's JS
Swift & ReactiveX – Asynchronous Event-Based Funsies with RxSwift
Introduction to ReasonML
Perkenalan ReasonML
Ad

Similar to 2018年のXamarinの概要と活用方法 (20)

PDF
PDF
The evolution of redux action creators
PDF
Durable functions 2.0 (2019-10-10)
PPTX
Async Best Practices
PDF
OOP - PREFINAL ACTIVITY - ACLC
PPTX
Chapter 11.5
PDF
Introduzione JQuery
PPTX
MVVM e Caliburn Micro for Windows Phone applications
PDF
PureScript & Pux
PDF
Azure Durable Functions (2019-03-30)
PDF
A Tour of Building Web Applications with R Shiny
PPTX
Javascript 2
PDF
Creating a Facebook Clone - Part XII - Transcript.pdf
PDF
The love child of Android and .NET: App development with Xamarin
PDF
The state of your own hypertext preprocessor
PDF
JavaScript Lessons 2023
PDF
Blending Culture in Twitter Client
PDF
Creating a Facebook Clone - Part XII.pdf
PDF
Adopting 3D Touch in your apps
PPTX
C#을 이용한 task 병렬화와 비동기 패턴
The evolution of redux action creators
Durable functions 2.0 (2019-10-10)
Async Best Practices
OOP - PREFINAL ACTIVITY - ACLC
Chapter 11.5
Introduzione JQuery
MVVM e Caliburn Micro for Windows Phone applications
PureScript & Pux
Azure Durable Functions (2019-03-30)
A Tour of Building Web Applications with R Shiny
Javascript 2
Creating a Facebook Clone - Part XII - Transcript.pdf
The love child of Android and .NET: App development with Xamarin
The state of your own hypertext preprocessor
JavaScript Lessons 2023
Blending Culture in Twitter Client
Creating a Facebook Clone - Part XII.pdf
Adopting 3D Touch in your apps
C#을 이용한 task 병렬화와 비동기 패턴
Ad

More from Yoshito Tabuchi (20)

PDF
Kong Summit 2021 振り返り
PDF
Kong 概要
PDF
勉強会参加のススメ
PDF
Kong Enterprise の紹介
PDF
How does a sales person grow up his community
PDF
C# と Xamarin
PDF
Xamarin で Cognitive Services を使う
PDF
Xamarin で Cognitive Services を使ってみよう
PDF
Xamarin.Forms のこれまでとこれから
PDF
Xamarinを触り始めた頃の話〜触りたい人に向けて〜
PDF
20171202 Xamarinの歩き方
PDF
Xamarin概要と活用方法
PDF
Xamarin概要と活用方法
PDF
Realm Mobile Platform 概要
PDF
Computer Vision と Translator Text API 使ってみた
PDF
Xamarin から使う Azure
PDF
Xamarin 概要~Windows Embedded の業務用端末から Android へのシームレスな移行~
PDF
NET Standard と Xamarin
PDF
モバイル向けクロスプラットフォーム開発ツール Xamarin の概要とその利点
PDF
Xamarin概要+最新情報
Kong Summit 2021 振り返り
Kong 概要
勉強会参加のススメ
Kong Enterprise の紹介
How does a sales person grow up his community
C# と Xamarin
Xamarin で Cognitive Services を使う
Xamarin で Cognitive Services を使ってみよう
Xamarin.Forms のこれまでとこれから
Xamarinを触り始めた頃の話〜触りたい人に向けて〜
20171202 Xamarinの歩き方
Xamarin概要と活用方法
Xamarin概要と活用方法
Realm Mobile Platform 概要
Computer Vision と Translator Text API 使ってみた
Xamarin から使う Azure
Xamarin 概要~Windows Embedded の業務用端末から Android へのシームレスな移行~
NET Standard と Xamarin
モバイル向けクロスプラットフォーム開発ツール Xamarin の概要とその利点
Xamarin概要+最新情報

2018年のXamarinの概要と活用方法

  • 8. button.Click += async (sender, e) => { var client = new HttpClient(); using (var reader = new StreamReader(await client.GetStreamAsync("xxx"))) { var deserializer = new XmlSerializer(typeof(Rss)); var latest = deserializer.Deserialize(reader) as Rss; var feed = latest.Channel.Items .Where(x => x.Link.Contains("xamarin")) .Select(x => x.Title).ToList(); } };
  • 12. [Register ("TodoListViewController")] partial class TodoListViewController { [Outlet] [GeneratedCode ("iOS Designer", "1.0")] UIButton LoginButton { get; set; } ... } LoginButton.TouchUpInside += (object sender, EventArgs e) => { // TODO: add logic here } ViewController.designer.cs ViewController.cs
  • 16. public class MainActivity : Activity { ... void OnClick(object sender, EventArgs e) { var intent = new Intent(this, typeof(Activity2)); base.StartActivity(intent); } }
  • 25. <?xml version="1.0" encoding="utf-8" ?> <ContentPage x:Class="App1.Views.XamlPage" ... Title="Login Page"> <StackLayout Padding="8" Spacing="4"> <Image Source="/Images/Xamagon.png" HeightRequest="300" WidthRequest="300" /> <Label FontSize="Large" Text="Xamarin.Forms Login Page" /> <Entry x:Name="entry" Text="{Binding Name}" /> <Button x:Name="loginButton" Clicked="LoginButton_Clicked" Text="Login" /> </StackLayout> </ContentPage> public class CSharpPage : ContentPage { public CSharpPage() { var image = new Image { ... }; var label = new Label {... }; var entry = new Entry { ... }; var loginButton = new Button {... }; loginButton.Clicked += LoginButton_Clicked; Title = "Login Page"; Content = new StackLayout { Children = { image, label, entry, loginButton }, }; } }