title: Problem icon WPF XAML - icons are not displayed
body: <p>I have a problem with icons.
  In the edit mode, they are displayed and you cannot see them after starting the program.
  I put in a different colored icon and it actually worked.
  I don't know why this is happening with white icons.
  I've been working on it for several hours and I don't know, will anyone help?</p>
  <p><a href="https://i.stack.imgur.com/mDJ9Q.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p><a href="https://i.stack.imgur.com/4SJ6Q.png" rel="nofollow noreferrer">enter image description here</a></p>
  <pre><code>&lt;Window x:Class=&quot;Projekt.MainWindow&quot;
      xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
      xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
      xmlns:d=&quot;http://schemas.microsoft.com/expression/blend/2008&quot;
      xmlns:mc=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot;
      xmlns:local=&quot;clr-namespace:Projekt&quot;
      mc:Ignorable=&quot;d&quot;
      Title=&quot;Kadry i płace Sputnik 2021&quot; Height=&quot;450&quot; Width=&quot;800&quot;&gt;
  &lt;Grid&gt;
      &lt;Grid.ColumnDefinitions&gt;
          &lt;ColumnDefinition Width=&quot;9*&quot;/&gt;
          &lt;ColumnDefinition Width=&quot;11*&quot;/&gt;
      &lt;/Grid.ColumnDefinitions&gt;
      &lt;DockPanel Grid.ColumnSpan=&quot;2&quot;&gt;
          &lt;Menu DockPanel.Dock=&quot;Top&quot; Height=&quot;20&quot;&gt;
              &lt;Menu.Background&gt;
                  &lt;SolidColorBrush&gt;#457b9d&lt;/SolidColorBrush&gt;
              &lt;/Menu.Background&gt;
              &lt;MenuItem Header=&quot;_Opcje&quot; Foreground=&quot;#f1faee&quot;&gt;
                  &lt;MenuItem Header=&quot;Kadry&quot; Foreground=&quot;Black&quot;/&gt;
                  &lt;MenuItem Header=&quot;Płace&quot; Foreground=&quot;Black&quot;/&gt;
                  &lt;MenuItem Header=&quot;Właściciele&quot; Foreground=&quot;Black&quot;/&gt;
                  &lt;Separator/&gt;
                  &lt;MenuItem Header=&quot;Przelew do ZUS&quot;/&gt;
                  &lt;Separator/&gt;
                  &lt;MenuItem Header=&quot;Przypomnij&quot;/&gt;
              &lt;/MenuItem&gt;
              &lt;MenuItem Header=&quot;_Inne&quot; Foreground=&quot;#f1faee&quot;&gt;
                  &lt;MenuItem Header=&quot;Przelogowanie&quot;/&gt;
                  &lt;MenuItem Header=&quot;Ustawienie&quot;/&gt;
                  &lt;MenuItem Header=&quot;Kalkulator&quot;/&gt;
                  &lt;MenuItem Header=&quot;Wygląd&quot;/&gt;
                  &lt;MenuItem Header=&quot;Pobranie Podręcznika&quot;/&gt;
              &lt;/MenuItem&gt;
              &lt;MenuItem Header=&quot;_Pomoc&quot; Foreground=&quot;#f1faee&quot;&gt;
                  &lt;MenuItem Header=&quot;Pomoc na temat&quot;/&gt;
                  &lt;MenuItem Header=&quot;Co nowego&quot;/&gt;
                  &lt;MenuItem Header=&quot;Kalkulator&quot;/&gt;
                  &lt;Separator/&gt;
                  &lt;MenuItem Header=&quot;Powiadomienia&quot;/&gt;
                  &lt;Separator/&gt;
                  &lt;MenuItem Header=&quot;O programie&quot;/&gt;
              &lt;/MenuItem&gt;
          &lt;/Menu&gt;
          &lt;StackPanel DockPanel.Dock =&quot;Left&quot; Width=&quot;130&quot; Background=&quot;#457b9d&quot;&gt;
              &lt;Grid Height=&quot;1&quot; Background=&quot;White&quot;&gt;&lt;/Grid&gt;
              &lt;Grid Height=&quot;19&quot;&gt;&lt;/Grid&gt;
              &lt;ListView BorderBrush=&quot;Transparent&quot; Background=&quot;#457b9d&quot;&gt;
                  &lt;ListViewItem Height=&quot;30&quot;&gt;
                      &lt;StackPanel Orientation=&quot;Horizontal&quot;&gt;
                          &lt;Image Source=&quot;/Source/Icons/List_View_place.png&quot;/&gt;
                          &lt;TextBlock  Text=&quot;Kadry&quot; Margin=&quot;15 0 0 0&quot; FontFamily=&quot;Candara&quot; Foreground=&quot;White&quot; VerticalAlignment=&quot;Center&quot;/&gt;
                      &lt;/StackPanel&gt;
                  &lt;/ListViewItem&gt;
                  &lt;ListViewItem Height=&quot;30&quot;&gt;
                      &lt;StackPanel Orientation=&quot;Horizontal&quot;&gt;
                          &lt;Image Source=&quot;/Source/Icons/List_View_Kadry.png&quot;/&gt;
                          &lt;TextBlock Text=&quot;Płace&quot; Margin=&quot;15 0 0 0&quot; FontFamily=&quot;Candara&quot; Foreground=&quot;White&quot; VerticalAlignment=&quot;Center&quot;/&gt;
                      &lt;/StackPanel&gt;
                  &lt;/ListViewItem&gt;
                  &lt;ListViewItem Height=&quot;30&quot;&gt;
                      &lt;StackPanel Orientation=&quot;Horizontal&quot;&gt;
                          &lt;Image Source=&quot;/Source/Icons/List_View_wlasciciele.png&quot;/&gt;
                          &lt;TextBlock Text=&quot;Właściciele&quot; Margin=&quot;15 0 0 0&quot; FontFamily=&quot;Candara&quot; Foreground=&quot;White&quot; VerticalAlignment=&quot;Center&quot;/&gt;
                      &lt;/StackPanel&gt;
                  &lt;/ListViewItem&gt;
                  &lt;ListViewItem Height=&quot;30&quot;&gt;
                      &lt;StackPanel Orientation=&quot;Horizontal&quot;&gt;
                          &lt;Image Source=&quot;/Source/Icons/List_View_zus.png&quot;/&gt;
                          &lt;TextBlock Text=&quot;Przedlew ZUS&quot; Margin=&quot;15 0 0 0&quot; FontFamily=&quot;Candara&quot; Foreground=&quot;White&quot; VerticalAlignment=&quot;Center&quot;/&gt;
                      &lt;/StackPanel&gt;
                  &lt;/ListViewItem&gt;
              &lt;/ListView&gt;
              &lt;Grid Height=&quot;140&quot;&gt;&lt;/Grid&gt;
              &lt;ListView BorderBrush=&quot;Transparent&quot; Background=&quot;#457b9d&quot;&gt;
                  &lt;ListViewItem&gt;
                      &lt;StackPanel Orientation=&quot;Horizontal&quot;&gt;
                          &lt;Image Source=&quot;/Source/Icons/List_View_użytkownik.png&quot; /&gt;
                          &lt;TextBlock Text=&quot;Firma&quot; Margin=&quot;15 0 0 0&quot; FontFamily=&quot;Candara&quot; Foreground=&quot;White&quot; VerticalAlignment=&quot;Center&quot;/&gt;
                      &lt;/StackPanel&gt;    
                  &lt;/ListViewItem&gt;
                  &lt;ListViewItem&gt;
                      &lt;StackPanel Orientation=&quot;Horizontal&quot;&gt;
                          &lt;Image Source=&quot;/Source/Icons/List_View_administrator.png&quot; /&gt;
                          &lt;TextBlock Text=&quot;Administrator&quot; Margin=&quot;15 0 0 0&quot; FontFamily=&quot;Candara&quot; Foreground=&quot;White&quot; VerticalAlignment=&quot;Center&quot;/&gt;
                      &lt;/StackPanel&gt;
                  &lt;/ListViewItem&gt;
                  &lt;ListViewItem&gt;
                      &lt;StackPanel Orientation=&quot;Horizontal&quot;&gt;
                          &lt;Image Source=&quot;/Source/Icons/List_View_kalendarz.png&quot; /&gt;
                          &lt;TextBlock Text=&quot;Kalendarz&quot; Margin=&quot;15 0 0 0&quot; FontFamily=&quot;Candara&quot; Foreground=&quot;White&quot; VerticalAlignment=&quot;Center&quot;/&gt;
                      &lt;/StackPanel&gt;
                  &lt;/ListViewItem&gt;
              &lt;/ListView&gt;
              &lt;Grid Height=&quot;1&quot; Background=&quot;white&quot;&gt;&lt;/Grid&gt;
              &lt;StackPanel Orientation=&quot;Horizontal&quot; HorizontalAlignment=&quot;Center&quot; Margin=&quot;0 5 0 0&quot;&gt;
                  &lt;ListView BorderBrush=&quot;Transparent&quot; Background=&quot;#457b9d&quot;&gt;
                      &lt;ListViewItem Margin=&quot;0 0 10 0&quot;&gt;
                          &lt;Image Source=&quot;/Source/Icons/List_View_ustawienia.png&quot; Height=&quot;25&quot; /&gt;
                      &lt;/ListViewItem&gt;
                  &lt;/ListView&gt;
                  &lt;ListView BorderBrush=&quot;Transparent&quot; Background=&quot;#457b9d&quot;&gt;
                      &lt;ListViewItem&gt;
                          &lt;Image Source=&quot;/Source/Icons/List_View_wyjscie.png&quot; Height=&quot;25&quot; /&gt;
  
                      &lt;/ListViewItem&gt;
                  &lt;/ListView&gt;
              &lt;/StackPanel&gt;
          &lt;/StackPanel&gt;
          &lt;StackPanel&gt;
          &lt;/StackPanel&gt;
      &lt;/DockPanel&gt;
  &lt;/Grid&gt;
  </code></pre>