private void Button_Click_2(object sender, RoutedEventArgs e) { IMedia x = list.SelectedItem as IMedia; MessageBox.Show(x.GetMedia().ToString()); }