Browse Source

Log Exceptions when parsing app.xaml

pull/604/head
jogibear9988 12 years ago
parent
commit
54757a67f9
  1. 5
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.AddIn/Src/WpfViewContent.cs

5
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.AddIn/Src/WpfViewContent.cs

@ -30,6 +30,7 @@ using System.Windows.Input;
using System.Windows.Markup; using System.Windows.Markup;
using System.Xml; using System.Xml;
using ICSharpCode.Core;
using ICSharpCode.Core.Presentation; using ICSharpCode.Core.Presentation;
using ICSharpCode.NRefactory.TypeSystem; using ICSharpCode.NRefactory.TypeSystem;
using ICSharpCode.SharpDevelop; using ICSharpCode.SharpDevelop;
@ -161,9 +162,9 @@ namespace ICSharpCode.WpfDesign.AddIn
var dict = (ResourceDictionary)parsed.RootInstance; var dict = (ResourceDictionary)parsed.RootInstance;
designer.DesignPanel.Resources.MergedDictionaries.Add(dict); designer.DesignPanel.Resources.MergedDictionaries.Add(dict);
} }
} catch (Exception ex) {
LoggingService.Error("Error in loading app.xaml", ex);
} }
catch (Exception)
{ }
} }
} }

Loading…
Cancel
Save