~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/AddIns/BackendBindings/XamlBinding/XamlBinding/Options/XamlBindingOptions.cs

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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)
 
3
 
 
4
using System;
 
5
using System.Collections.Generic;
 
6
using System.Diagnostics;
 
7
using System.Windows.Media;
 
8
 
 
9
using ICSharpCode.Core;
 
10
 
 
11
namespace ICSharpCode.XamlBinding
 
12
{       
 
13
        public static class XamlBindingOptions
 
14
        {
 
15
                static Properties properties;
 
16
 
 
17
                static XamlBindingOptions()
 
18
                {
 
19
                        properties = PropertyService.Get("XamlBinding.Options", new Properties());
 
20
                }
 
21
 
 
22
                static Properties Properties {
 
23
                        get {
 
24
                                Debug.Assert(properties != null);
 
25
                                return properties;
 
26
                        }
 
27
                }
 
28
                
 
29
                public static bool UseExtensionCompletion {
 
30
                        get { return Properties.Get("UseExtensionCompletion", true); }
 
31
                        set { Properties.Set("UseExtensionCompletion", value); }
 
32
                }
 
33
                
 
34
                public static bool SwitchToCodeViewAfterInsertion {
 
35
                        get { return Properties.Get("SwitchToCodeViewAfterInsertion", true); }
 
36
                        set { Properties.Set("SwitchToCodeViewAfterInsertion", value); }
 
37
                }
 
38
                
 
39
                public static bool UseAdvancedHighlighting {
 
40
                        get { return Properties.Get("UseAdvancedHighlighting", true); }
 
41
                        set { Properties.Set("UseAdvancedHighlighting", value); }
 
42
                }
 
43
                
 
44
                public static string EventHandlerNamePattern {
 
45
                        get { return Properties.Get("EventHandlerNamePattern", "%Object%_%Event%"); }
 
46
                        set { Properties.Set("EventHandlerNamePattern", value); }
 
47
                }
 
48
                
 
49
                public static Color PropertyForegroundColor {
 
50
                        get { return Properties.Get("PropertyForeground", Colors.CadetBlue); }
 
51
                        set { Properties.Set("PropertyForeground", value); }
 
52
                }
 
53
                
 
54
                public static Color PropertyBackgroundColor {
 
55
                        get { return Properties.Get("PropertyBackground", Colors.Transparent); }
 
56
                        set { Properties.Set("PropertyBackground", value); }
 
57
                }
 
58
                
 
59
                public static Color EventForegroundColor {
 
60
                        get { return Properties.Get("EventForeground", Colors.Green); }
 
61
                        set { Properties.Set("EventForeground", value); }
 
62
                }
 
63
 
 
64
                public static Color EventBackgroundColor {
 
65
                        get { return Properties.Get("EventBackground", Colors.Transparent); }
 
66
                        set { Properties.Set("EventBackground", value); }
 
67
                }
 
68
                
 
69
                public static Color NamespaceDeclarationForegroundColor {
 
70
                        get { return Properties.Get("NamespaceDeclarationForeground", Colors.Orange); }
 
71
                        set { Properties.Set("NamespaceDeclarationForeground", value); }
 
72
                }
 
73
                
 
74
                public static Color NamespaceDeclarationBackgroundColor { 
 
75
                        get { return Properties.Get("NamespaceDeclarationBackground", Colors.Transparent); }
 
76
                        set { Properties.Set("NamespaceDeclarationBackground", value); }
 
77
                }
 
78
                
 
79
                public static Color IgnoredForegroundColor {
 
80
                        get { return Properties.Get("IgnoredForeground", Colors.LightGray); }
 
81
                        set { Properties.Set("IgnoredForeground", value); }
 
82
                }
 
83
                
 
84
                public static Color IgnoredBackgroundColor {
 
85
                        get { return Properties.Get("IgnoredBackground", Colors.Transparent); }
 
86
                        set { Properties.Set("IgnoredBackground", value); }
 
87
                }
 
88
        }
 
89
}