RadWindow Confirm DialogParameters and WindowClosedEventArgs

2 posts, 0 answers
  1. Pablo Roca
    Pablo Roca avatar
    2 posts
    Member since:
    Apr 2007

    Posted 30 Jan 2011 Link to this post

    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
  2. Pablo Roca
    Pablo Roca avatar
    2 posts
    Member since:
    Apr 2007

    Posted 30 Jan 2011 Link to this post

    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
  3. DevCraft banner
Back to Top