public override void ShowDialog(PropertyValue propertyValue, IInputElement commandSource) { var userDataDialog = new UserDataDialog(); userDataDialog.Set(propertyValue.Value.ToString()); userDataDialog.ShowDialog(); if (userDataDialog.DialogResult == true) { propertyValue.Value = userDataDialog.Get(); } }