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.Diagnostics;
7
using System.Windows.Media;
9
using ICSharpCode.Core;
11
namespace ICSharpCode.XamlBinding
13
public static class XamlBindingOptions
15
static Properties properties;
17
static XamlBindingOptions()
19
properties = PropertyService.Get("XamlBinding.Options", new Properties());
22
static Properties Properties {
24
Debug.Assert(properties != null);
29
public static bool UseExtensionCompletion {
30
get { return Properties.Get("UseExtensionCompletion", true); }
31
set { Properties.Set("UseExtensionCompletion", value); }
34
public static bool SwitchToCodeViewAfterInsertion {
35
get { return Properties.Get("SwitchToCodeViewAfterInsertion", true); }
36
set { Properties.Set("SwitchToCodeViewAfterInsertion", value); }
39
public static bool UseAdvancedHighlighting {
40
get { return Properties.Get("UseAdvancedHighlighting", true); }
41
set { Properties.Set("UseAdvancedHighlighting", value); }
44
public static string EventHandlerNamePattern {
45
get { return Properties.Get("EventHandlerNamePattern", "%Object%_%Event%"); }
46
set { Properties.Set("EventHandlerNamePattern", value); }
49
public static Color PropertyForegroundColor {
50
get { return Properties.Get("PropertyForeground", Colors.CadetBlue); }
51
set { Properties.Set("PropertyForeground", value); }
54
public static Color PropertyBackgroundColor {
55
get { return Properties.Get("PropertyBackground", Colors.Transparent); }
56
set { Properties.Set("PropertyBackground", value); }
59
public static Color EventForegroundColor {
60
get { return Properties.Get("EventForeground", Colors.Green); }
61
set { Properties.Set("EventForeground", value); }
64
public static Color EventBackgroundColor {
65
get { return Properties.Get("EventBackground", Colors.Transparent); }
66
set { Properties.Set("EventBackground", value); }
69
public static Color NamespaceDeclarationForegroundColor {
70
get { return Properties.Get("NamespaceDeclarationForeground", Colors.Orange); }
71
set { Properties.Set("NamespaceDeclarationForeground", value); }
74
public static Color NamespaceDeclarationBackgroundColor {
75
get { return Properties.Get("NamespaceDeclarationBackground", Colors.Transparent); }
76
set { Properties.Set("NamespaceDeclarationBackground", value); }
79
public static Color IgnoredForegroundColor {
80
get { return Properties.Get("IgnoredForeground", Colors.LightGray); }
81
set { Properties.Set("IgnoredForeground", value); }
84
public static Color IgnoredBackgroundColor {
85
get { return Properties.Get("IgnoredBackground", Colors.Transparent); }
86
set { Properties.Set("IgnoredBackground", value); }