Child window from a tile view item using MVVM

3 posts, 0 answers
  1. Sam
    Sam avatar
    10 posts
    Member since:
    Dec 2013

    Posted 15 Jan 2014 Link to this post

    Hello;

    I am working on a project with the following requirements :
    - I have a dashboard with a set of tile view items in different size (large, small, medium).
    - Each tile item size has its content.
    - In the normal (medium) view, I need to add a button "properties". When the user clicks on, a child window will be opened in order to set the properties of the tile view item and filter the information to be displayed in the different views.

    I am stuck in the third part. As the tile view item is a user control, I found a solution on internet based on behavior which allows me to open the child window, however, i cannot implement the close & OK buttons using MVVM.

    I need your support on this point.
    Thanks for your help.

    Best regards

    Sam
  2. Boris
    Admin
    Boris avatar
    276 posts

    Posted 20 Jan 2014 Link to this post

    Hello Sam,

    I have prepared a sample project which demonstrates the opening of a Window, and basic implementation of "Ok" and "Cancel" buttons by using Commands. BasicalIy I have used the Telerik's DelegateCommand which helps us attach a method to our command. For more about our MVVM support you can visit this post.

    Regards,
    Boris Penev
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Sam
    Sam avatar
    10 posts
    Member since:
    Dec 2013

    Posted 23 Jan 2014 Link to this post

    Hello;

    Thanks for your reply. It worked perfectly.

    Best Regards
    Sam
Back to Top