Xamarin Forms: Build Native Cross-platform Apps with C#-Creating a Xamarin Form App

tony Guo
tony Guo
Aug 9, 2017 · 2 min read

新建一個project

英文版的稱為project solution,中文稱為解決方案,使用不同語言的朋友要多多注意語言轉換意思。

選擇Blank Forms App

下一步後,輸入專案名稱

其他的設定先使用預設即可,接下來右邊會看到

當看到生成了一個專案就算成功囉!馬上按左上角的“執行”(play的符號)

剛新建的專案內建就已經有一個lable在中央囉!

回到code:

就在剛剛,當我們按下執行的時候,程式從App.xaml.cs將MainPage設成testPage()

那我們到testPage()看看

有沒有發現剛剛執行所看到的 “Welcome to Xamarin Forms!”,沒錯!所以我們如果要顯示其他文字就可以從這邊修改。

到此一定有眼尖的朋友發現xmal很像html

    tony Guo

    Written by

    tony Guo

    追知識追夢追科技,喜歡新穎的事物及看法,更喜歡思考。

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade