The reason for the problem is here:
public MainWindow()
{
ZaugLanguage();
InitializeComponent();
}
We need to put the InitializeComponent method above the ZaugLanguage method.
We can know from the name that this method is used to initialize the component. If the component has not been initialized, then of course a NuReferenceException will appear when we try to call it.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.