private void AddToGroup(SampleItem sample, TileGroup group) { var tile = new TileView() { Text = sample.Name, Image = Properties.Resources.C1_WaterMark, Tag = sample }; tile.Click += (s, e) => _sideBar.SelectSample(sample); group.Tiles.Add(tile); }