1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
5
using System.Collections.Generic;
6
using System.Reflection;
7
using ICSharpCode.WpfDesign.Designer.Services;
8
using ICSharpCode.WpfDesign.XamlDom;
10
namespace ICSharpCode.WpfDesign.Designer.Xaml
13
/// Settings used to load a XAML document.
15
public sealed class XamlLoadSettings
17
public readonly ICollection<Assembly> DesignerAssemblies = new List<Assembly>();
18
public readonly List<Action<XamlDesignContext>> CustomServiceRegisterFunctions = new List<Action<XamlDesignContext>>();
19
public Action<XamlErrorService> ReportErrors;
20
XamlTypeFinder typeFinder = XamlTypeFinder.CreateWpfTypeFinder();
22
public XamlTypeFinder TypeFinder {
23
get { return typeFinder; }
26
throw new ArgumentNullException("value");
31
public XamlLoadSettings()
33
DesignerAssemblies.Add(typeof(XamlDesignContext).Assembly);