I need to open a popup when I press a button. Currently in MainWindow.xaml.cs I have:
private void Add_Button_Click(object sender, RoutedEventArgs e)
{
AddPopup.IsOpen = true;
}
I need to get rid of code behind. How can this be accomplished in pure xaml?