private void Window_Activated(object sender, EventArgs e) { DeleteButton.SetContent("Delete"); CancelButton.SetContent("Cancel"); ListItemsToDelete.SetList(paths); }