Exemplo n.º 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();
 }
Exemplo n.º 2
0
 protected void CommonConstructor()
 {
     children = new ObservableCollection<Plot2DItem>();
     AddContextMenu();
     childrenAdapter = new ObservableCollectionListAdapter<Plot2DItem>();
 }