/// <summary> /// Convenience method for adding buttons /// </summary> PadButton AddButton(PadButton.ID id, string text, int column, int columnSpan, int row, int rowSpan, Brush background) { var button = new PadButton(id, text, foreground, background, borderBrush); button.Click += Button_Click; Children.Add(button, new Grid.Anchor(column, columnSpan, row, rowSpan)); return(button); }
/// <summary> /// Convenience method for adding buttons /// </summary> PadButton AddButton(PadButton.ID id, string text, int column, int row, Brush background) => AddButton(id, text, column, 1, row, 1, background);