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