How to: Close a Radwindows from a RadButton

3 posts, 1 answers
  1. xavendano
    xavendano avatar
    35 posts
    Member since:
    Feb 2012

    Posted 07 Jul 2012 Link to this post

    Hi,

    The CloseButton the RadWindow works fine!!!

    But I'dlike to add a custom RadButton with "Close" that make exactly that....close the RadWindow in .NET

    thats is possible?

    Thanks all.....
  2. Answer
    Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 12 Jul 2012 Link to this post

    Hello Romell,

    I have prepared and attached a sample project which shows how to close RadWindow using RadButton's Click event.

    Regards,
    Vladi
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. xavendano
    xavendano avatar
    35 posts
    Member since:
    Feb 2012

    Posted 12 Jul 2012 Link to this post

    Thanks Vladi,

    But I made a small change in the code .... why? Because my window Radwindow calls a user control and content from a control RadButton I close the call to the window.

    In the end I included the code is as follows:

            Dim As RadWindow = Me.Parent parentWindow
            parentWindow.Close ()

    Thank you in advance ...
    Best regards
Back to Top