以下のエントリーで、アプリケーションに組み込んだリソースをコードから参照します。 リソースをWPFアプリケーションに組み込む - プログラマーな日々 リソースを3種類の方法でWPFアプリケーションに組み込みます。 ... MainWindow.xaml <Window x:Class="HelloWorld.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="900"> <StackPanel x:Name="StackPanel1" Orientation="Horizontal"> </StackP