public List <Button> GenerateButton(string jsonFormat) { List <Button> lstButton = new List <Button>(); Button btnTemp = new Button(); TableModal tbDetail = JsonConvert.DeserializeObject <TableModal>(jsonFormat); return(lstButton); }
private void Button_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { // Get the Position of Window so that it will set margin from this window m_MouseX = e.GetPosition(this).X; m_MouseY = e.GetPosition(this).Y; Button btnTemp = sender as Button; Console.WriteLine(btnTemp.Name); TableModal tableModel = new TableModal(); tableModel.Name = btnTemp.Name; }