Compatibility with PRISM

24 posts, 0 answers
  1. Josh
    Josh avatar
    4 posts
    Member since:
    Feb 2014

    Posted 26 Aug Link to this post

    I'm researching various WPF Control Libraries for a large upcoming project, and am wondering what type of compatibility Telerik WPF has with PRISM 5.0? The project is for Windows 7 machines, but I have not been able to find very many resources indicating compatibility.

    I saw some posts asking how to use RibbonBar with PRISM, but that's about it.

    Does Teleriks WPF have some custom implementation of PRISM, or some proprietary MVVM framework?

  2. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 31 Aug Link to this post

    Hi Josh,

    The components from the UI for WPF suite doesn't have any specific implementation to fit better in the PRISM framework. Also, we do not provide custom implementation of PRISM or our own MVVM framework.

    Our controls support PRISM as much as any native WPF control. However, if you have any struggles using Telerik UI for WPF with the framework you can contact us with more details on the issue.

    Regards,
    Martin
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
  4. steven
    steven avatar
    22 posts
    Member since:
    Aug 2014

    Posted 10 Oct Link to this post

    I am following the video Building IG Outlook Part 5 - Implementing Navigation and a little MVVM  video and implementing the code using Telerik 2015 WPF Controls, Prism 6 and Unity. 

    https://www.youtube.com/watch?v=cSwubHHxEtk

    Everything seems to working  find except the Navigation to a view the second time an outlookbar item is selected.
    Let me explain.
    Navigation works find on upon starting the application, and clicking on any outlookbar item the first time. But after that whenever I click another any  outlookbar item navigation fails.
    Any selection in the outlookbar selected for the first time navigates to the correct view.
    Any selection in the outlookbar after that navigation fails.
    I have  the code in question in a zip file out in my dropbox account on the internet.
     If  anyone would be interested in looking at the code and possibly giving an idea on what the problem may me.
    Thanks 
    Steve Frierdich
    stevensrf@mail.com
  5. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 11 Oct Link to this post

    Hi Steve,

    I am not sure that I understand the described behavior and this is why I won't be able to assist you. However, I can suggest you to prepare a small example demonstrating this and open a new support ticket. Or share runnable code in the forum. Also, if you decide to continue this topic in the forum I would ask you to open a new thread in the corresponding RadOutlookBar section, as this question seems related to the RadOutlookBar control and this is the UI for WPF general section of the forum. 

    Regards,
    Martin
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  6. steven
    steven avatar
    22 posts
    Member since:
    Aug 2014

    Posted 11 Oct in reply to Martin Link to this post

    Martin thank for responding to my post.
    My subscription account expired with teleik because I was not able to continue my telerik subscription.
    I am following along with Brian Lagunas video series on Prism.
    I am replacing the Infragistic controls he uses with Telerik controls.
    I have completed Part 5 of the video:
    Building IG Outlook Part 5 - Implementing Navigation and a little MVVM
    https://www.youtube.com/watch?v=cSwubHHxEtk

    In the video navigation to a new view via Prism occurs at start up and when an outlook bar item is selected an Infragistics Outlook bar.
    In the code I modified replacing the Infragistics Outlook Bar with Telerik WPF RadOutlookBar navigation to a new view only occurs the first time a RadOutlookBar item is selected, and up start up. Navigation to a new view never occurs again when a RadOutlookBar Item is selected.
    I have to source code in available on line in DropBox available for download.
    If you send me an email address I can give you access to the source code.
    The source code zip is in a zip file which  is about 1,5 Megabytes.
    I am not sure if telerik accepts zip files attached, or files of that size.
    I have attach a couple of photos showing how the views that should occur with the corresponding outlook bar item as seen in the video. When the source code that contains the Telerik controls I only get the view of the first time an item in the outlook bar is selected.  

  7. steven
    steven avatar
    22 posts
    Member since:
    Aug 2014

    Posted 11 Oct Link to this post

    Martin I posted the source code on GIT HUB at

    https://github.com/stevensrf11/PRISM-Telerick

    Feel free to download the code and fix the navigation to a view problem as described in the previous message.

    Also the RadOutlookBar does not expand at start up it would be nice if it did.

    So if you would like to add any visual improvements on that feel free to.

     

  8. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 12 Oct Link to this post

    Hi Steve,

    I checked your solution but it couldn't run. An error was thrown that the CompositeContainer has multiple constructors with the same number of parameters. Anyway, I fixed this by replacing the container with IUnityContainer, but the project do not demonstrate the behavior described in your first post. This is why I downloaded the source code of the implementation demonstrated in the YouTube video and modify it so that it uses Telerik controls. You can find it attached in this post.

    Regards,
    Martin
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  9. steven
    steven avatar
    22 posts
    Member since:
    Aug 2014

    Posted 12 Oct in reply to Martin Link to this post

    Martn

    the link to the solution does not work.

    I Clicked on the link the IgOutlookSolution-TelerikUpdate.rar a webpage is displayed showing the page is lost.

    Can you just email the zipped file to me at stevensrf@mail.com or try reposting it.

    The attached image is the webpage I get when clicking on the link.

  10. steven
    steven avatar
    22 posts
    Member since:
    Aug 2014

    Posted 12 Oct Link to this post

    I forget to attach the webpage image to the previous  reply. The attached image is the webpage I get when clicking on the IgOutlookSolution-TelerikUpdate.rar link.
  11. steven
    steven avatar
    22 posts
    Member since:
    Aug 2014

    Posted 12 Oct Link to this post

    Oh I forgot the projects are strong names. 

    I will remove that so the projects will load correctly

  12. steven
    steven avatar
    22 posts
    Member since:
    Aug 2014

    Posted 12 Oct Link to this post

    I saw after downloading the source files from github not all the files where downloaded that are displayed in Github. I am not sure why. Attached here is the zip files for the projects.

    Let me know if you can download the zip.

    If you can could you add your changes to the and email the updated zip file to me at stevensrf@mail.com or post here in a link.

    I changed the extension of attach zip file to png since that is one of the allowed extension. You will need to change this extension back to zip after downloading the file.

  13. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 17 Oct Link to this post

    Hello Steven,

    I was able to download your project and change the extension. However, it contains the same code as the one provide in GitHub. I couldn't find any difference.

    About the project from my last reply, I am afraid that there is a technical issue with the forum and some of the attachments are not available for download. We are working to resolve this as soon as possible. When this happens I will contact you to download the project.

    In the mean time I would recommend you to check the PRISM navigation logic and navigation paths to the different views. Keep in mind that the change from the Infragistics outlookbar to Telerik outlookbar is not that straightforwards so you will need to ensure that all related PRISM implementation is correctly updated.

    Regards,
    Martin
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  14. steven
    steven avatar
    22 posts
    Member since:
    Aug 2014

    Posted 17 Oct in reply to Martin Link to this post

    The code was the same because I was able to download the code and compile it on three different computer.

    You said you fixed the code anyway and tried to post the solution as link to download. The link you posted was invalid.

    Could you just email that zip file at stevensrf@mail.com or repost the zip file with a valid link so I can download it?

  15. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 18 Oct Link to this post

    Hi Steven,

    The issue with the broken attachments is now live. Can you please try downloading the project and see if it works?

    Regards,
    Martin
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  16. steven
    steven avatar
    22 posts
    Member since:
    Aug 2014

    Posted 20 Oct in reply to Martin Link to this post

    Looks like you went and downloaedd the source code from Brian Lagunas website, stuck in telerik controls for the WPF side, made some codes change, and and never got a successful compile. Is that true? The source you posted referenced the same old version of Infragistics that Brian Lagunas online code does.

     The source code you posted will not compile unless you either have an old copy of Infragistics software or you modify the code to support the latest version of Infragistics? Did you even compile the code you posted?

     

    I am guessing all you did was stick telerik controls into Brian Lagunas, made some code change and did not get a successful compile.

    If that is all you did that will not fix the problem that is occurring in navigation.

  17. steven
    steven avatar
    22 posts
    Member since:
    Aug 2014

    Posted 20 Oct Link to this post

    I got the code you posted to compile.

    I removed all silver light projects and moved the files the wpf projects were referencing in the silver light folders to the wpf folders.

    The compiled project did perform correct navigation.

    The new project is in a zip file(https://github.com/spaceradars/ignavtelerikfix) located at 

    https://github.com/spaceradars/ignavtelerikfix

    I am not sure what you did different than the project I did to get it to work.

    I will have to really examine the difference.

    Thanks 

    Steve Frierdich

  18. steven
    steven avatar
    22 posts
    Member since:
    Aug 2014

    Posted 20 Oct in reply to steven Link to this post

    The zipped file name is igoutlooktelerikfix.zip
  19. steven
    steven avatar
    22 posts
    Member since:
    Aug 2014

    Posted 21 Oct in reply to steven Link to this post

    THE SOLUTION CODE YOU POSTED USED PRISM 4 VERSION LIKE THE DEMO CODE DOES..

    THE CODE IS SUPPOSE TO USE PRISM 6 VERSION AS I POSTED IN THE SOURCE CODE EARLIER THIS MONTH WHICH YOU DOWNLOADED.

    SO THE CODE YOUR POSTED DID NOT REALLY FIX ANYTHING BECAUSE THERE WAS NOTHING BROKEN WHEN PRISM 4 IS USED. 

    THE ZIP FILE I POSTED IN  A PREVIOUS MESSAGE IS USING PRISM 4 WHICH WAS JUST THE MODIFICATION OF THE CODE YOU POSTED ELIMINATING REFERENCES TO SILVERLIGHT.

    I WILL UPDATE THE CODE IN ZIP FILE TO USE PRISM 6 BUT I BELIEVE WHEN THIS IS DONE THE NAVIGATION PROBLEM WILL FAIL. WHEN USING PRISM 6 SOME OF THE NAVIGATION QUERY CLASS HAVE BEEN CHANGED FROM PRISM 4 TO PRISM 6.

  20. steven
    steven avatar
    22 posts
    Member since:
    Aug 2014

    Posted 21 Oct Link to this post

    I have Brian Lagunas demo code working with PRISM 6 and Telerik controls.

    It seems the problem was in the parameters being pass during navigation.

    Use of Telerik controls was not in error.

    The solution is posted at https://github.com/spaceradars/ignavtelerikfix

    The name of the solution zip file is 

    igoutlookUnity5 Implementing Navigation and a little MVVM.zip

    The solution posted corresponds to video Building IG Outlook Part 5 - Implementing Navigation and a little MVVM,

    There are two more videos Part 6 and Part 7 I need to watch to get a full work solution.

    Thanks for all you help.

    Steven Frierdich

  21. steven
    steven avatar
    22 posts
    Member since:
    Aug 2014

    Posted 21 Oct Link to this post

    Martin 

    That is a very cool way on how you did the layout of the MailGroupView.XAML

    You coded the view alot more professional than I did, and I learn a great deal more insight.

    Thanks 

    Steve Frierdich
  22. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 24 Oct Link to this post

    Hi Steven,

    I am glad to hear that you managed to achieve your requirement. About my project, actually, I haven't implemented anything related to the structure of the solution. Just downloaded the project related to the video and replaced the Infra OutlookBar control and the related code with Telerik RadOutlookBar.

    Regards,
    Martin
    Telerik by Progress
    Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
  23. steven
    steven avatar
    22 posts
    Member since:
    Aug 2014

    Posted 26 Oct in reply to Martin Link to this post

    Are you for another challenge.

    I just upgraded the code in accordance to Building IG Outlook Part 6 - Adding Ribbon Tabs to View Navigation video , https://www.youtube.com/watch?v=xH6OgCxdXQc,

    The video is 27 minutes long

    The new feature added is to display add a ribbon tab to the ribbon when  navigating to a view and removing existing ribbon tabs.

    This is accomplished via an attribute, a region behavior, and a region tab item.

    It seems like new code was pretty much related to just PRISM and WPF.

    Well It the upgraded code did not work as is shown at the end of the video.

    I can add the the 3 solution links out on GITHUB if you want to take a stab a getting the upgraded code to work.

    One solution would be the code related to the video

    A  second solution would be the upgraded code that follows the video that does not work .

    The Third solution would be the working code for the prior video - Building IG Outlook Part 5 - Implementing Navigation and a little MVVM, https://www.youtube.com/watch?v=cSwubHHxEtk

    If you want to take a stab at getting the upgraded code to work let me know and I will post the three solutions for download.

     

  24. steven
    steven avatar
    22 posts
    Member since:
    Aug 2014

    Posted 26 Oct in reply to steven Link to this post

    I also see Tina Stancheva has posted some sample code on related to Prism and Ribbonview and Outlookbar. Maybe you could share the above problem with her , and maybe she would like to take a try at fixing the upgraded code. In fact share it with whoever and everyone . Does not matter who fixes it as long as it works.
  25. steven
    steven avatar
    22 posts
    Member since:
    Aug 2014

    Posted 26 Oct in reply to steven Link to this post

    Disregard previous posts. I found the fix for the ungraded code  in accordance to Building IG Outlook Part 6 - Adding Ribbon Tabs to View Navigation video 
Back to Top
UI for WPF is Visual Studio 2017 Ready