ExecutedSave - Problem

5 posts, 2 answers
  1. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 22 May 2014 Link to this post

    Hi,

    I have a Problem with the "CanExecutedSave" Event. If a drop a Shape on my diagram this Event will not fired. I have
    to do something else before, for example Close an open the Toolbox with my shapes. Now the to "CanExecuteEvent"
    will be fired and after it, I the "ExecuteSave" works fine.

    Any Ideas?

    Thanks
    Best Regards
    Rene
  2. Answer
    Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 26 May 2014 Link to this post

    Hi Rene,
    Could you please elaborate a little bit more on your scenario because as far as we've tested the CanExecuteSave method is always called after shape drop ?
    I've attached a sample project so you could examine it and tell us what you're doing differently.

    Regards,
    Zarko
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for WPF is Visual Studio 2017 Ready
  4. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 27 May 2014 in reply to Zarko Link to this post

    Hi,

    thanks for answering. I have exactly your code in my project. The problem is, that the save-button is enabled, but on clicking
    on the button, nothing happens Void ExecuteSave will not fired! But if I click on the "OpenCloseButton" RadDiagramToolbox, the
    void ExecuteSave will fired!

    Thanks
    Best Regards
    Rene



  5. Answer
    Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 28 May 2014 Link to this post

    Hi Rene,
    We haven't experienced such an issue on our side so if you still have problems in your application I'd like to ask you for a sample project.

    Regards,
    Zarko
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  6. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 28 May 2014 in reply to Zarko Link to this post

    Hi,

    thanks for answering, I found the error. The problem was the missing x:Name="root" in the
    Header of the MainWindow.xaml.

    Thanks a lot
    Best Regards
    Rene
Back to Top
UI for WPF is Visual Studio 2017 Ready