public ContentTemplateDemo() { InitializeComponent(); // Add another EmployeeButton just to demonstrate the code. EmployeeButton btn = new EmployeeButton(); btn.Content = new Employee("Jim", "Jim.png", new DateTime(1975, 6, 15), false); stack.Children.Add(btn); }
public ContentTemplateDemo() { InitializeComponent(); // Add another EmployeeButton just to demonstrate the code. EmployeeButton btn = new EmployeeButton(); btn.Content = new Employee("Jim", "Jim.png", new DateTime(1975, 6, 15), false); stack.Children.Add(btn); }
public MainWindow() { InitializeComponent(); // one more EmployeeButton EmployeeButton btn = new EmployeeButton() { Content = new Employee("Jim", "jim.png", new DateTime(1975, 6, 15), false) }; stack.Children.Add(btn); }