/// <summary> /// This function is responsible for the series of actions that will be performed when this button is clicked /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void information_Click(object sender, RoutedEventArgs e) { Button a = (Button)sender; tempStop = (BO.Stop)a.DataContext; var ab = new StopInfo(tempStop); ab.Height = 300; ab.Width = 600; ab.Show(); }