1

Windows WPF アプリを .dll ライブラリに変更したいと考えています。Windows App.xaml ディレクトリで、「Application.Resources」を定義しました。

<Application x:Class="WpfApplication13.App"
         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         StartupUri="MainWindow.xaml">
<Application.Resources>
    <Style TargetType="Control" x:Key="EmptyFocusVisualStyle">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>

                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</Application.Resources>

しかし、dll ライブラリには App.xaml ファイルがないため、これらのコードをどこに配置するのでしょうか? 「dll プロジェクト」の新しい「リソース ディクショナリ」ファイルに追加しますか? しかし、これは「Application.Resources」と同等ですか?

助けや例を教えてください。ご不明な点がございましたら、お尋ねください。

4

1 に答える 1