static BindingServiceProvider()
 {
     BindingModeToBehaviorField = new Dictionary <string, IBindingBehavior>(StringComparer.OrdinalIgnoreCase)
     {
         { "Default", null },
         { "TwoWay", new TwoWayBindingMode() },
         { "OneWay", new OneWayBindingMode() },
         { "OneTime", new OneTimeBindingMode() },
         { "OneWayToSource", new OneWayToSourceBindingMode() },
         { "None", NoneBindingMode.Instance }
     };
     MemberPriorities = new Dictionary <string, int>
     {
         { AttachedMemberConstants.DataContext, DataContextMemberPriority },
         { AttachedMemberConstants.ItemTemplate, TemplateMemberPriority },
         { AttachedMemberConstants.ItemTemplateSelector, TemplateMemberPriority },
         { AttachedMemberConstants.ContentTemplate, TemplateMemberPriority },
         { AttachedMemberConstants.ContentTemplateSelector, TemplateMemberPriority }
     };
     FakeMemberPrefixesField = new List <string>
     {
         "_Fake",
         "Fake"
     };
     DataContextMemberAliasesField = new HashSet <string>(StringComparer.Ordinal)
     {
         AttachedMemberConstants.DataContext
     };
     SetDefaultValues();
     MvvmApplication.InitializeDesignTimeManager();
     ViewManager.GetDataContext = BindingExtensions.DataContext;
     ViewManager.SetDataContext = BindingExtensions.SetDataContext;
 }
 public BindingEditorView()
 {
     MvvmApplication.InitializeDesignTimeManager();
     InitializeComponent();
     bindingEditor.Handler             = this;
     _controlsDictionary               = new SortedDictionary <string, SortedDictionary <string, AutoCompleteItem> >(StringComparer.CurrentCulture);
     _controlsCompleteItems            = new SortedDictionary <string, AutoCompleteItem>(StringComparer.CurrentCulture);
     _typeCompleteItems                = new Dictionary <Type, SortedDictionary <string, AutoCompleteItem> >();
     _attachedControlAutoCompleteItems = BindingServiceProvider
                                         .MemberProvider
                                         .GetAttachedMembers(typeof(Control))
                                         .ToArrayEx(s => new AutoCompleteItem(s.Key, s.Key, MemberTypes.Custom));
     controlsTreeView.Nodes.Add(GetComponents(CurrentControl));
     controlsTreeView.ExpandAll();
 }