This is a migrated thread and some comments may be shown as answers.

Compatibility with PRISM

25 Answers 603 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 26 Aug 2016, 02:38 PM

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?

25 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 31 Aug 2016, 09:10 AM
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.
0
steven
Top achievements
Rank 1
answered on 10 Oct 2016, 03:24 PM
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
0
Martin Ivanov
Telerik team
answered on 11 Oct 2016, 08:08 AM
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.
0
steven
Top achievements
Rank 1
answered on 11 Oct 2016, 01:17 PM

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.  

0
steven
Top achievements
Rank 1
answered on 11 Oct 2016, 02:15 PM

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.

 

0
Martin Ivanov
Telerik team
answered on 12 Oct 2016, 10:24 AM
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.
0
steven
Top achievements
Rank 1
answered on 12 Oct 2016, 12:47 PM

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.

0
steven
Top achievements
Rank 1
answered on 12 Oct 2016, 12:48 PM
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.
0
steven
Top achievements
Rank 1
answered on 12 Oct 2016, 01:04 PM

Oh I forgot the projects are strong names. 

I will remove that so the projects will load correctly

0
steven
Top achievements
Rank 1
answered on 12 Oct 2016, 01:18 PM

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.

0
Martin Ivanov
Telerik team
answered on 17 Oct 2016, 09:07 AM
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.
0
steven
Top achievements
Rank 1
answered on 17 Oct 2016, 05:45 PM

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?

0
Martin Ivanov
Telerik team
answered on 18 Oct 2016, 09:48 AM
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.
0
steven
Top achievements
Rank 1
answered on 20 Oct 2016, 08:09 PM

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.

0
steven
Top achievements
Rank 1
answered on 21 Oct 2016, 01:04 AM

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

0
steven
Top achievements
Rank 1
answered on 21 Oct 2016, 01:05 AM
The zipped file name is igoutlooktelerikfix.zip
0
steven
Top achievements
Rank 1
answered on 21 Oct 2016, 04:33 PM

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.

0
steven
Top achievements
Rank 1
answered on 21 Oct 2016, 11:26 PM

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

0
steven
Top achievements
Rank 1
answered on 22 Oct 2016, 12:12 AM

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
0
Martin Ivanov
Telerik team
answered on 24 Oct 2016, 01:30 PM
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!
0
steven
Top achievements
Rank 1
answered on 26 Oct 2016, 07:16 PM

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.

 

0
steven
Top achievements
Rank 1
answered on 26 Oct 2016, 07:21 PM
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.
0
steven
Top achievements
Rank 1
answered on 27 Oct 2016, 03:00 AM
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 
0
steven
Top achievements
Rank 1
answered on 30 Mar 2017, 07:46 AM

Martin I do not know if you remember me.

I posted some code that you looked at from git hub. It involved using PRISM 6 and dynamically inserting RadRibbonTabs into a RadRibbonView.

I have been having trouble getting the controls to displayed inside a RadRibbonTab xaml window the tab is inserted.

I have to click on the tab for the controls to be displayed.

This can be seen in the two attached photos. The a.png photo shows an example of the RadRibbonTab inserted with the controls not being displayed. The b.png photo shows the RadRibbonTab  being clicked on, and the controls being displayed

I followed an example of inserting controls into a RadRibbonTab xaml window from the 317172_RibbonViewPrism source code that one of the telerik developers made available. But it does not work for me

I was wondered if you could take a look at the source code and tell me what I could do so the controls would be displayed the RadRibbonTab  is first inserted in the RadRibbonView?. 

Below is a link to the source code.

The source is in a zip file named igoutlookUnity 7 Adding the Contacts Module.zip

The IGOutlook.Modules.Mail project's Menus folder is the radribbontab xaml named HomeTab.xaml.

In the IgOutlook.Infrastructure are the corresponding classes that make up the corresponding viewmodel classes for the HomeTab.xaml. Group.cs, Content.Cs, HomeTabViewModel.cs

  

The code source is available for download at

https://github.com/stevensrf11/Prism-Telerik

The source file name is igoutlookUnity 7 Adding the Contacts Module.zip

Thanks

 

0
Martin Ivanov
Telerik team
answered on 03 Apr 2017, 01:03 PM
Hi Josh,

The issue comes from the XamRibbonRegionAdapter class. When you change the selection in the treeview positioned at the left side of the application, the RemoveViewFromRegion() method is called and then the AddViewFromRegion(). This removes and re-adds the ribbontab item. When you remove the ribbontab item from the ribbonview Items collection, the selection is removed. In other words, the is IsSelected property of ribbon items is set to False. To work this around you should make sure that the RemoveViewFromRegion method is not fired always when the selection in the treeview is changed. Or use some kind of mechanism for saving and restoring the IsSelected value when the tab item region is added/removed. Alternative, you can make sure that the IsSelected is set to True each time you add a new tab item.

Regards,
Martin
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
General Discussions
Asked by
Josh
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
steven
Top achievements
Rank 1
Share this question
or