<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi, <BR> <BR>I'm having a problem with trying to find a xaml resource file. I am using the PyWpfSample as my starting point but I added a resource. I have tried various ways to reference<BR> <BR><span style="color: rgb(163, 21, 21);">ResourceDictionary</span><span style="color: blue;">></span><br> <span style="color: blue;"><</span><span style="color: rgb(163, 21, 21);">ResourceDictionary.MergedDictionaries</span><span style="color: blue;">></span><br> <span style="color: blue;"><</span><span style="color: rgb(163, 21, 21);">ResourceDictionary</span> <span style="color: red;">Source</span><span style="color: blue;">=</span><span style="color: black;">"</span><span style="color: blue;">myresourcedictionary.xaml</span><span style="color: black;">"</span><span style="color: blue;">/></span><br> <span style="color: blue;"><</span><span style="color: rgb(163, 21, 21);">ResourceDictionary</span> <span style="color: red;">Source</span><span style="color: blue;">=</span><span style="color: black;">"</span><span style="color: blue;">myresourcedictionary2.xaml</span><span style="color: black;">"</span><span style="color: blue;">/></span><br> <span style="color: blue;"></</span><span style="color: rgb(163, 21, 21);">ResourceDictionary.MergedDictionaries</span><span style="color: blue;">></span><br> <span style="color: blue;"></</span><span style="color: rgb(163, 21, 21);">ResourceDictionary</span><span style="color: blue;">></span><BR><span style="color: blue;"></span> <BR><span style="color: blue;"><font color="#000000">and</font> </span><BR><span style="color: blue;"></span> <BR><span style="color: blue;"><span style="color: rgb(163, 21, 21);"><ResourceDictionary</span><span style="color: blue;">></span><br><font color="#000000"> </font><span style="color: blue;"><</span><span style="color: rgb(163, 21, 21);">ResourceDictionary.MergedDictionaries</span><span style="color: blue;">></span><br><font color="#000000"> </font><span style="color: blue;"><</span><span style="color: rgb(163, 21, 21);">ResourceDictionary</span><font color="#000000"> </font><span style="color: red;">Source</span><span style="color: blue;">=</span><span style="color: black;">"pack://application:,,,/</span><span style="color: blue;">myresourcedictionary.xaml</span><span style="color: black;">"</span><span style="color: blue;">/></span><br><font color="#000000"> </font><span style="color: blue;"><</span><span style="color: rgb(163, 21, 21);">ResourceDictionary</span><font color="#000000"> </font><span style="color: red;">Source</span><span style="color: blue;">=</span><span style="color: black;">"pack://application:,,,/</span><span style="color: blue;">myresourcedictionary2.xaml</span><span style="color: black;">"</span><span style="color: blue;">/></span><br><font color="#000000"> </font><span style="color: blue;"></</span><span style="color: rgb(163, 21, 21);">ResourceDictionary.MergedDictionaries</span><span style="color: blue;">></span><br><font color="#000000"> </font><span style="color: blue;"></</span><span style="color: rgb(163, 21, 21);">ResourceDictionary</span><span style="color: blue;">></span></span><BR><span style="color: blue;"></span> <BR>The only way I could get it to work is to put the full file path. I have the xaml resources in the same location as my python scripts and main xaml file. I'm not sure if there is another way to reference a resource xaml file. <BR> <BR>Thanks.<BR> <BR>Danny<br><BR> </div></body>
</html>