示例#1
0
 protected override void InitControl()
 {
     // the view model is created once and not disposed in OnUnloaded as this is a cached control
     this.viewModel   = new ViewModelStructurePointsBarControl();
     this.DataContext = this.viewModel;
     this.RefreshViewModelData();
 }
示例#2
0
 protected override void InitControl()
 {
     this.viewModel   = new ViewModelStructurePointsBarControl();
     this.DataContext = this.viewModel;
     this.RefreshViewModelData();
 }
示例#3
0
 protected override void OnUnloaded()
 {
     this.DataContext = null;
     this.viewModel.Dispose();
     this.viewModel = null;
 }