Example #1
0
 public FontFamilyValueEditor()
 {
     this.fontFamilyEditor    = new FontFamilyEditor();
     this.Content             = this.fontFamilyEditor;
     this.DataContextChanged += new DependencyPropertyChangedEventHandler(this.FontFamilyValueEditor_DataContextChanged);
     this.Loaded             += new RoutedEventHandler(this.FontFamilyValueEditor_Loaded);
     this.Unloaded           += new RoutedEventHandler(this.FontFamilyValueEditor_Unloaded);
     this.SetBinding(FontFamilyValueEditor.CurrentFontItemProperty, (BindingBase) new Binding()
     {
         Source = this.fontFamilyEditor,
         Path   = new PropertyPath((object)FontFamilyEditor.CurrentFontItemProperty)
     });
 }
Example #2
0
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Root = (FontFamilyEditor)target;
                break;

            case 2:
                this.FontChoiceEditor = (ChoiceEditor)target;
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }