カスタム フォントをリソースとしてアプリケーションに追加しようとしています。アプリケーションに「CustomFont」ディレクトリがあり、その中のすべてのフォントが「リソース」に設定されています
<Window.Resources>
<Style x:Key="Gotham-XLight">
<Setter Property="TextElement.FontFamily"
Value="/CustomFonts;Component/#Gotham-XLight" />
</Style>
</Window.Resources>
そして、私のTextBlockにはこれがあります:(グリッド内)
<TextBlock x:Name="TimeTextBlock" Style="{DynamicResource Gotham-XLight}"
TextAlignment="Center" FontSize="25" FontWeight="Bold"
Foreground="White" Text="TextBlockTimer"
Margin="105,242.974,0,226.975" HorizontalAlignment="Left"
Width="221.919" />
しかし、人々が言うように、フォントが表示されません。私は何か間違ったことをしていますか?