private void NormalView_ContainerContentChanging(ListViewBase sender, ContainerContentChangingEventArgs args) { NormalView nv = args.ItemContainer.ContentTemplateRoot as NormalView; if (nv != null) { if (DiveRect == null || DiveRect.Width <= 0) { SetDiveRect(); } nv.Width = DiveRect.Width / 2 - 20; nv.Height = nv.Width - 10; nv.Margin = new Thickness(10, 0, 5, 0); nv.AddAllData(args.Item as AcContent); bool has = false; for (int i = 0; i < _FDIMGS.Count; i++) { if (_FDIMGS[i] == nv.img) { has = true; } } if (!has) { _FDIMGS.Add(nv.img); } } }