private void AddItem(string path, Point p, int pos) { IconSample icon1 = new IconSample(path) { Width = p.X, Height = p.Y }; RearrangableCanvas.AddIcon(icon1, pos); }