Architect's Log

I'm a Cloud Architect. I'm highly motivated to reduce toils with driving DevOps.

ファイルパスやURIでリソースを参照する

ファイルパスやURIでリソースを参照します。

App.xaml

変更はありません。

App.xaml.cs

変更はありません。

MainWindow.xaml

<Window x:Class="Resource.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <StackPanel Orientation="Horizontal">
        <Image
            Source="http://www.st-hatena.com/users/JH/JHashimoto/profile.gif" />
        <Image
            Source="C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Winter.jpg" />
    </StackPanel>
</Window>

MainWindow.xaml.cs

変更はありません。

アプリ実行