Approved
Last Updated: 03 May 2019 16:55 by ADMIN
Jeff
Created on: 27 Jan 2014 14:31
Category: Window
Type: Feature Request
3
Window: Add system sound support to RadWindow.Alert and RadWindow.Confirm
When creating themed applications using RadControls, the standard Windows MessageBox control looks out of place.  With that in mind, the predefined RadWindows (Alert and Confirm) seem to be natural replacements for a typical MessageBox.  

However, when these dialogs open, they are silent  That is, they don't play any error, warning, or question sounds like the standard MessageBox - which makes them seem "strange" when used as a replacement.

Adding sounds to (for instance) the Alert window is fairly simple and can be accomplished like this:

RadWindow.Alert(new DialogParameters()
{
    Content = new System.Windows.Controls.TextBlock {
        Text = ex.Message, Width = 250, TextWrapping = TextWrapping.Wrap },
    Header = "Update Error",
    Opened = (alertDialog, eventArgs) => System.Media.SystemSounds.Exclamation.Play()
});

Though, it'd be nice if the ability to play a sound was built-in.  I'd suggest that the DialogParameters class used to customize the predefined dialogs be extended to support a SystemSound member of type System.Media.SystemSounds which, if defined, would play the specified sound when the dialog opens.
2 comments
ADMIN
Martin Ivanov
Posted on: 03 May 2019 16:55
Hello Joshua,

Can you please add some more information about the menu's feature request? More specifically, when exactly you expect the menu to play a sound? When you execute a command which set to the Command of RadMenuItem? And when the child menu items open? Or at any other occasion?

Regards,
Martin Ivanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Joshua
Posted on: 27 Apr 2019 19:24
RadMenu also needs system sound effect support. The two sounds are "Menu Command" and "Menu Pop-up".