public void OnUpdate(Int64 lastMSec, Int64 curMSec, double scale, Panel container, NicoLabelListModel labels) { double w = container.ActualWidth; double h = container.ActualHeight; foreach (NicoComment comm in comments) { Int64 vposMSec = comm.VPos * 10; if (vposMSec >= lastMSec && vposMSec < curMSec) { NicoLabel label = new NicoLabel(); // label.Background = new SolidColorBrush(Color.FromArgb(0, 0, 0, 0)); // child of container.Children.Add(label); // label->setAttribute(Qt::WA_TransparentForMouseEvents); label.SetByNicoComment(comm); if (_noShadow) { label.SetShadowDepth(0); } label.Birth(w, h, scale); label.DoMove((int)(curMSec - vposMSec)); labels.checkCollision(label, scale, container); labels.Add(label); } } }