Removed the EmbeddedControlCollection (it's not being used anymore at all); fixed flickering of the ContainerListView control

git-svn-id: file:///srv/devel/repo-conversion/nuwi@29 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
Markus Ewald 2010-02-18 18:40:44 +00:00
parent 9a5252f461
commit 8d092bd9e8
3 changed files with 5 additions and 135 deletions

View file

@ -61,7 +61,6 @@ namespace Nuclex.Windows.Forms {
this.embeddedControlClickedDelegate = new EventHandler(embeddedControlClicked);
this.embeddedControls = new ObservableCollection<ListViewEmbeddedControl>();
this.embeddedControls.ItemAdded +=
new EventHandler<ItemEventArgs<ListViewEmbeddedControl>>(embeddedControlAdded);
this.embeddedControls.ItemRemoved +=
@ -69,6 +68,10 @@ namespace Nuclex.Windows.Forms {
this.embeddedControls.Clearing += new EventHandler(embeddedControlsClearing);
InitializeComponent();
// Eliminate flickering
SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
base.View = View.Details;