Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
わかりました私は私のプロジェクトに約 5 のリソースを持っていImagesます。私がやりたいことはImage.Source、プロジェクト リソースからバインドすることです。Im C# コードはとても簡単です。
Images
Image.Source
ImageHolder.Source = Propetries.Resources.Image1.png.
ImageHolder.Source = Propetries.Resources.Image1.png
これを XAML でどのように行うことができますか? このようなもの :
<Image Source={??????}/>
前もって感謝します。
Build Actionforが次のようにimageマークされていることを確認してResourceから、XAML でこれを簡単に実行できます -
Build Action
image
Resource
<Image Source="Properties/Resources/a.png"/>
Propetries/Resourcesイメージが存在するプロジェクトのフォルダー構造を想定しています。
Propetries/Resources