Beispiel #1
0
 public Plot2D()
 {
     InitializeComponent();
     children = new ObservableCollection <Plot2DItem>();
     AddContextMenu();
     // Adapter used for templating; actually not needed for UserControl implementation.
     childrenAdapter            = new ObservableCollectionListAdapter <Plot2DItem>();
     childrenAdapter.Collection = children;
     childrenAdapter.TargetList = PlotPanel.PlotItems;
     childrenAdapter.Populate();
 }
Beispiel #2
0
 protected void CommonConstructor()
 {
     children = new ObservableCollection <Plot2DItem>();
     AddContextMenu();
     childrenAdapter = new ObservableCollectionListAdapter <Plot2DItem>();
 }