public TextAlignmentValueEditor() { this.textAlignmentEditor = new TextAlignmentEditor(); this.Content = (object)this.textAlignmentEditor; this.DataContextChanged += new DependencyPropertyChangedEventHandler(this.FontFamilyValueEditor_DataContextChanged); this.Loaded += new RoutedEventHandler(this.FontFamilyValueEditor_Loaded); }
void IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Root = (TextAlignmentEditor)target; break; case 2: this.TextAlignmentChoiceEditor = (ChoiceEditor)target; break; default: this._contentLoaded = true; break; } }