xamarinの個人的なメモ:ツールバーアイコンの設定方法

ポイント

画像の設置場所

iOS:iOSプロジェクト内の「Resources」フォルダー
Android:Androidプロジェクト内の「Resources/drawable」フォルダー

ビルドアクションの設定

追加したpngファイルのプロパティのビルドアクションを
iOS:「BundleResource」→未確認なので違うかも?
Android:「AndroidResource」
にする。

xamlの書きかた

<ToolbarItem Text=”check”
Icon=”hogehoge.png“/>

Leave a Comment

Your email address will not be published. Required fields are marked *