More Related Content Similar to Xamarin で クラシックデスクトップ 2 (20)
PDF
Xamarin 古勣 2014/11/08 及2指 Japan Xamarin User Group Conference 廉晩云
Yoshito Tabuchi ?
PDF
Xamarin 20141212 モバイルカフェスペシャル 仝C#で恬るiOS/Androidのクロスプラットフォ`ムスマホアプリ_k々
Yoshito Tabuchi ?
PPTX
20191209 JXUGC #26 峠晩エディション k燕Y創. ?Xamarin.FormsのUIでどこまでできるナウなUI?
Shuhei Nishizawa ?
More from m ishizaki (20) Xamarin で クラシックデスクトップ 22. / 27
徭失B初
墳鍋 割措 ( @mishi_cs )
Japan Xamarin Users Group ( JXUG )
Microsoft MVP for Visual Studio and Development Technologies
冱Z C# XAML
試咤
?JXUG (もくもく氏) (connpass)
?廓|.NET Users Group (connpass)
?C# もくもく氏 (connpass)
☆麼に拍~圻
2
6. / 27
Xamarin とは
?Android / iOS の API を C# から聞えるようにしたもの
?C# (.NET) のライブラリを聞えるようにしたもの
6
ロジックのみ慌宥晒
UIはネイティブでeに恬りこむ
Shared C# App Logic
(.NET Standard)
iOS
C# UI
Android
C# UI
Windows
C# UI
7. / 27
Xamarin の2つの_k圭隈
7
Xamarin Native Xamarin Forms
ロジックのみ慌宥晒
UIはネイティブでeに恬りこむ
ロジックとUIを慌宥晒
UIは光プラットフォ`ムの
揖じ叨護のUIが徭咼泪奪團鵐
Shared C# App Logic
(.NET Standard)
iOS
C# UI
Android
C# UI
Windows
C# UI
Shared C# App Logic
(.NET Standard)
Shared C# UI Code
(Xamarin.Forms)
9. / 27
UI の_k返隈
9
Xamarin.Native Xamarin.Forms
古勣 ネイティブの室gを聞喘 UI 慌宥晒ライブラリ
協x Android では axml
iOS では storyboard など
xaml というシンプルな XML
崙s 崙泙里覆 UI 光プラットフォ`ムの恷寄巷s方のC嬬
のみ
蒙 UI が慌宥晒できない UI にこだわらないアプリなら UI まで慌
宥晒辛嬬
聞いどころ コンシュ`マ`鬚吋▲廛蠅筌妊
インを嶷する栽に
ビジネス鬚吋▲廛蠅C嬬嶷のツ`ル
狼アプリなどに
Formsで
かくUIを協
xしたい
Custom Renderer で鏡徭にネイティブの
コントロ`ル/プロパティとY栽するコン
トロ`ルを恬撹辛嬬
10. / 27
C# (.NET) のライブラリ
畠悶
10
Xamarin
コ`ド慌嗤
Xamarin.Navive Xamarin.Forms.axml /
storyboard
Xamarin.Android
Xamarin.iOS
UI の協xUI の協x どちらかxk
25. / 27
Xamarin.Forms 聞われるクラス (ス`パ`クラス)
StackLayout Xamarin.Forms.Platform.WPF.FormsPanel Panel
AbsoluteLayout Xamarin.Forms.Platform.WPF.FormsPanel Panel
RelativeLayout Xamarin.Forms.Platform.WPF.FormsPanel Panel
Grid Xamarin.Forms.Platform.WPF.FormsPanel Panel
ContentView Xamarin.Forms.Platform.WPF.FormsPanel Panel
ScrollView ScrollViewer
Frame Border
ActivityIndicator ProgressBar
BoxView System.Windows.Shapes.Rectangle
Button Button
DatePicker DatePicker
Editor TextBox
Entry Xamarin.Forms.Platform.WPF.FormsTextBox TextBox
Image Image
Label TextBlock
ListView ListView
Map Microsoft.Maps.MapControl.Map
OpenGLView
System.Windows.Forms.Integration.WindowsFormsHost
-> OpenTK.GLControl UserControl
Picker ComboBox
ProgressBar ProgressBar
SearchBar Xamarin.Forms.Platform.WPF.FormsTextBox TextBox
際際滷r 際際滷r
Stepper <Border><StackPanel><Button/><Button/></StackPanel></Border>
TableView ListView
TimePicker Xamarin.Forms.Platform.WPF.FormsTimePicker TextBox
WebView WebBrowser
EntryCell Xamarin.Forms.Platform.WPF.FormsTextBox TextBox
ImageCell <Grid><Image/><TextBlock/><TextBlock/></Grid>
SwitchCell <Grid><TextBlock/><CheckBox/></Grid>
TextCell <StackPanel><TextBlock/><TextBlock/></StackPanel>
ViewCell Xamarin.Forms.Platform.WPF.CellControl ContentControl 25
26. / 27
コントロ`ルのマッピング ┌隠
Xamarin.Forms 聞われるクラス (ス`パ`クラス)
StackLayout Xamarin.Forms.Platform.WPF.FormsPanel Panel
AbsoluteLayout Xamarin.Forms.Platform.WPF.FormsPanel Panel
RelativeLayout Xamarin.Forms.Platform.WPF.FormsPanel Panel
Grid Xamarin.Forms.Platform.WPF.FormsPanel Panel
ContentView Xamarin.Forms.Platform.WPF.FormsPanel Panel
ScrollView ScrollViewer
Frame Border
ActivityIndicator ProgressBar
BoxView System.Windows.Shapes.Rectangle
Button Button
DatePicker DatePicker
Editor TextBox
Entry Xamarin.Forms.Platform.WPF.FormsTextBox TextBox
Image Image
Label TextBlock
ListView ListView
Map Microsoft.Maps.MapControl.Map 26
27. / 27
コントロ`ルのマッピング ┌横
Xamarin.Forms 聞われるクラス (ス`パ`クラス)
OpenGLView
System.Windows.Forms.Integration.WindowsFormsHost
-> OpenTK.GLControl UserControl
Picker ComboBox
ProgressBar ProgressBar
SearchBar Xamarin.Forms.Platform.WPF.FormsTextBox TextBox
際際滷r 際際滷r
Stepper
<Border><StackPanel><Button/><Button/>
</StackPanel></Border>
TableView ListView
TimePicker Xamarin.Forms.Platform.WPF.FormsTimePicker TextBox
WebView WebBrowser
EntryCell Xamarin.Forms.Platform.WPF.FormsTextBox TextBox
ImageCell <Grid><Image/><TextBlock/><TextBlock/></Grid>
SwitchCell <Grid><TextBlock/><CheckBox/></Grid>
TextCell <StackPanel><TextBlock/><TextBlock/></StackPanel>
ViewCell Xamarin.Forms.Platform.WPF.CellControl ContentControl
27