Exemplo n.º 1
0
 /// <summary>
 /// Load up our xaml window
 /// </summary>
 /// <param name="uiPath"></param>
 /// <returns></returns>
 internal UserControl LoadWindowContent(string uiPath)
 {
     try
     {
         lock (ContentLock)
         {
             _windowContent = WPF.LoadWindowContent(Resources.MainView);
             //LoadResourceForWindow(Path.Combine(uiPath, "Dictionary.xaml"), _windowContent);
             return(_windowContent);
         }
     }
     catch (Exception ex)
     {
         Logger.Error("Exception loading window content! {0}", ex);
     }
     return(null);
 }