This is a migrated thread and some comments may be shown as answers.

RadWindow Confirm DialogParameters and WindowClosedEventArgs

1 Answer 213 Views
Window
This is a migrated thread and some comments may be shown as answers.
Pablo Roca
Top achievements
Rank 1
Pablo Roca asked on 30 Jan 2011, 07:37 PM
Hi,

I'm testing the SilverLight controls and I have an issue with the predefinied dialogs of RadWindow, the confirm dialog has two overloads:

1. DialogParameters
2. Content, closed

I would like to have another overload, like

3. DialogParameters, closed

Cause I want to control the dialog aspect (text, icon, buttons) and get the result from which button is pressed via the WinClosedArgs.

Must I ask this in the BUG Tracking System or there is another alternative (but not doing an usercontrol).

Please the solution in VB.NET :)

Thanks,

Pablo

1 Answer, 1 is accepted

Sort by
0
Pablo Roca
Top achievements
Rank 1
answered on 30 Jan 2011, 08:09 PM
Disregard my previous message.

The Closed event can be handled with the first overload, in the Closed parameter of DialogParameters, like:

        Dim dlg As New DialogParameters()
        dlg.Header = "Dialog Header"
        dlg.Content = 'Dialog Message'
        dlg.OkButtonContent = 'Yes'
        dlg.CancelButtonContent = 'No'
        dlg.Closed = New EventHandler(Of WindowClosedEventArgs)(AddressOf OnClosed)

Regards,

Pablo
Tags
Window
Asked by
Pablo Roca
Top achievements
Rank 1
Answers by
Pablo Roca
Top achievements
Rank 1
Share this question
or