Please, see my comment to the question.
There is no strange
MessageBox
behaviour. It's totally unrelated to
MessageBox
.
Inside a setter
RaisePropertyChanged
is called no matter of
MessageBox
result. To correct it you need to add '
{
' and '
}
', because only one line of statement is executed after
if
condition.
See:
if-else (C# reference)[
^]