コード例 #1
0
 public RichViewWindow()
 {
     this._RichViewControl = new RichViewControl();
     this._RichViewControl.SetBinding(RichViewControl.ItemsSourceProperty, new Binding
     {
         Mode   = BindingMode.OneWay,
         Source = this,
         Path   = new PropertyPath("RichViewItemsSource")
     });
     this.BubbleMsgs = new ObservableCollection <BubbleMsg>();
 }
コード例 #2
0
 public override void OnApplyTemplate()
 {
     base.OnApplyTemplate();
     this._RichViewControl = this.GetTemplateChild("PART_RichViewControl") as RichViewControl;
 }