One more thing (Maybe it helps someone to save some time)
I had some problems with themes ( this.ApplyTheme("ExpressionDark");), Mybe i did not include the template correctly, but there is a workaround, if you dont have The templates installed.
The problem was that the program was looking for template fail in the last dir where i included a log file.
I save my log files in a different dir then my program is located, so after opening a log file from a log dir program waslooking for the xaml template from the log dir. And i got exeptions and the themes where not included for the filte and help (Probably
for all new windows)
So the workaround.
I copied the wanted template "Theme.xaml" to my project.
Removed all the
Now there are 2 possibiilities
1. If you use App.xaml startup put the Theme Resource here (There are examples in google (Dont have this version anymore :( ))
2. Since my log viewer is opened via a winform (External program) i need this this workaround
UriKind.Relative)) as ResourceDictionary);
To the constructor :) of the LogViewer.xaml.cs
Messy text but maybe it helps someone.