protected static MessageBoxButton TranslateMessageButton(MessageButton button) { try { return Enum<MessageBoxButton>.ConvertFromOtherEnumValue(button); } catch (Exception) { throw new NotSupportedInPlatformException("MessageBox class does not support MessageButton '{0}'", button); } } #endif