custom click event wpf button

Code Example - custom click event wpf button

                
                        button.Click += (sender, args) => { //TODO: add functionality };