/// <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; tempLine = (BO.Line)a.DataContext; var ab = new LineInfo(tempLine); ab.Height = 300; ab.Width = 600; ab.Show(); }