title: mahapps : fontfamily not load the font using the style defined nell'app.xaml
body: <p>my app.xaml</p>
  
  <pre><code>&lt;Application x:Class="MyProject.App"
               xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
               xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
               StartupUri="MainWindow.xaml"&gt;
      &lt;Application.Resources&gt;
          &lt;ResourceDictionary&gt;            
              &lt;Style x:Key="Lato-Regular"&gt;
                  &lt;Setter Property="TextElement.FontFamily" Value="pack://application:,,,/Resources/Font/#Lato-Regular" /&gt;
              &lt;/Style&gt;
  
              &lt;Style x:Key="Lato-Thin"&gt;
                  &lt;Setter Property="TextElement.FontFamily" Value="pack://application:,,,/Resources/Font/#Lato-Thin" /&gt;
              &lt;/Style&gt;
  
              &lt;Style x:Key="Lato-Semibold"&gt;
                  &lt;Setter Property="TextElement.FontFamily" Value="pack://application:,,,/Resources/Font/#Lato-Semibold" /&gt;
              &lt;/Style&gt;            
              &lt;ResourceDictionary.MergedDictionaries&gt;                
                  &lt;ResourceDictionary Source="Themes/Generic.xaml"/&gt;
                  &lt;ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" /&gt;
                  &lt;ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" /&gt;
                  &lt;ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" /&gt;
                  &lt;ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" /&gt;
                  &lt;ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" /&gt;
              &lt;/ResourceDictionary.MergedDictionaries&gt;
          &lt;/ResourceDictionary&gt;             
      &lt;/Application.Resources&gt;
  &lt;/Application&gt;
  </code></pre>
  
  <p>My font in solution "Resources/Font/: Lato-Regular.ttf,Lato-Thin.ttf,Lato-Semibold.ttf</p>
  
  <p>my mainwindows.xaml on textblock:</p>
  
  <pre><code>&lt;controls:MetroWindow x:Class="MainWindow.xaml"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:metro="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
        xmlns:controls="http://metro.mahapps.com/winfx/xaml/controls"
        xmlns:p="clr-namespace:MyProject.Properties"
        xmlns:res="clr-namespace:MyProject.Properties;assembly=CDA"
        mc:Ignorable="d" d:DesignHeight="660" d:DesignWidth="800" Background="#DEDFE4"
        Title="HomePage"&gt;
  
      &lt;Grid&gt;
              &lt;TextBlock  Style="{DynamicResource Lato-Regular}" MouseDown="HomePage_MouseDown" Text="HOMEPAGE" Grid.Row="3" HorizontalAlignment="Left" Margin="50,22,0,0" Foreground="#fff" FontSize="17" Height="Auto"&gt;&lt;/TextBlock&gt;
      &lt;/Grid&gt;
  &lt;/&lt;controls:MetroWindow&gt;
  </code></pre>
  
  <p>My fonts are set by the properties of " always copy " , and they are in solution .
  I do not understand why should not go , the software part but the fonts remain standards of the construction of the WPF view .
  It can be Mahapps including its fonts , and excludes me those imposed I?</p>