Better RadWindow.CanClose?

4 posts, 0 answers
  1. Jason
    Jason avatar
    9 posts
    Member since:
    Dec 2011

    Posted 03 Apr 2012 Link to this post

    Hi,

    Is looks when RadWindow.CanClose is set to true user can still press "Alt+F4" to close the window.
    I think in the case that we set CanClose=true we only want the window to be closed by explict call to Window.Close (by clicking a button after user has entered some required informatino for example).
    Right now my workaround is hooking up to PreviewKeyDown  and ignore Alt+F4, can you consider fix this?

    Thanks
    Jason
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 06 Apr 2012 Link to this post

    Hi Jason,

    This behavior is by design. It was closing on Alt+F4 in our older versions, but it was reported as bug, so we have changed it. For now we are not considering any changes in the behaviour of the RadWindow. The solution you are using seems fine.

    All the best,
    Konstantina
    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. Jason
    Jason avatar
    9 posts
    Member since:
    Dec 2011

    Posted 09 Apr 2012 Link to this post

    Do you mean "It was NOT closing on Alt+F4 in our older versions"? Because it is closing on Alt+F4 in the current version.
  5. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 11 Apr 2012 Link to this post

    Hello Jason, 

    Yes, I meant NOT closing :)

    Kind regards,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top