private async void SaveButton_Click(object sender, RoutedEventArgs e)
        {
            string foutmelding = Valideer("Title");

            foutmelding += Valideer("Description");

            if (string.IsNullOrWhiteSpace(foutmelding))
            {
                //Hier gaat men kijken of het al een bestaande notitie is of niet.
                if (newNote != true)
                {
                    note.Title        = TitleNote.Text;
                    note.Description  = DescriptionNote.Text;
                    note.creationdate = DateTime.Now;

                    if (note.IsValid())
                    {
                        int ok = DatabaseOperations.AanpassenNote(note);
                        if (ok > 0)
                        {
                            await DialogHost.Show(new ErrorDialog("Note has been saved!"));

                            NavigationService.GoBack();
                        }
                        else
                        {
                            await DialogHost.Show(new ErrorDialog("Note has not been saved!"));
                        }
                    }
                    else
                    {
                        await DialogHost.Show(new ErrorDialog(note.Error));
                    }
                }
                else
                {
                    NewNote.Title        = TitleNote.Text;
                    NewNote.Description  = DescriptionNote.Text;
                    NewNote.creationdate = DateTime.Now;
                    if (NewNote.IsValid())
                    {
                        int ok = DatabaseOperations.AddNote(NewNote);
                        if (ok > 0)
                        {
                            await DialogHost.Show(new ErrorDialog("Note has been saved!"));

                            NavigationService.GoBack();
                        }
                        else
                        {
                            await DialogHost.Show(new ErrorDialog("Note has not been saved!"));
                        }
                    }
                    else
                    {
                        await DialogHost.Show(new ErrorDialog(NewNote.Error));
                    }
                }
            }
            else
            {
                await DialogHost.Show(new ErrorDialog(foutmelding));
            }
        }