WPF Ribbon and Plugin - wpf

I'm looking into using the Office Ribbon UI to help navigate around my application and provide different tools for the current selected tab.
I need the Ribbon to be plugable. Each plugin has its own tab and using a DataTemplate displays what's needed.
The main control area will have a navigation on the left and a Tab Control on the right. Multple tabs will be open most of the time.
Ok questions:
1. Is the Ribbon control the correct control for the job
2. How do i dynamically add Tabs to the Ribbon control through my View Model
3. Does anyone know how to define DataTemplates in an external assembly. I need to avoid configurations inside my main application IE make it plugable :D
FYI. The application is a POS system

The Office Ribbon was the wrong choice for my design.
I've seen posts on using Prism with Office Ribbon to get plugins working

Related

VS 2012 Coded UI Testing and WPF User Control

I have an application that uses a UserControl inside of a Window, Coded UI Testing recognizes everything in the Window (buttons, etc.) but inside the UserControl I just get a blue box around the area and cannot select anything inside for recording.
I've been all over google for this issue and I think it has to do with the AutomationPeers (?). Any suggestions would be useful in how to get these elements visible to Coded UI
If the custom control doesn't provide a customized/override version of the OnCreateAutomationPeer, you can't. You need to ask developers to implement automation support for their control.
UPDATE:
My issue was that Coded UI couldn't see past my TabControl (displays different user controls). I followed this solution to create a CustomTabControl and override the OnCreationAutomationPeer() method so that the lower elements could be displayed.
[ click here ]

WPF Ribbon Window

I am creating WPF application, I want ribbon menu like this link. I am using MahApps Metro style window. How to add a ribbon menu in the metro window. I tried lot of codings, but didn't work. So please kindly send a procedure or coding for the ribbon window. Thanks..
You could try to use Fluent.Ribbon.
It's open source, should work well with MahApp.Metro and the showcase application shows both being used together.
Just download the showcase application, unzip it, run it and have a look at the tab below the ribbon which has the "Test" header. Said tab contains a button "Open MahMetro-Window" which you just have to click.
The most recent showcase application can be downloaded from appveyor. Please note that there is no separate zip package for the showcase application. There is only one zip package containing everything you need.
Disclaimer: I am the current maintainer of Fluent.Ribbon.
Ribbon control which is similar to the Microsoft Office Ribbon Bar is available in WPF.
Check this.
See this also.

User Control vs Pages vs Window on WPF Browser Applications

Do you know what is the difference between: User Control, Pages and Windows on WPF Browser Applications. I've found information related with this, but all the time are about WPF Desktop application.
Is it different for WPF Browser application?
I'm deploying an application but I don't know what is the best option for the Login section, the main section, the about section, etc.
Could someone explain me how can I use this tools in WPF Browser application?
Thanks in advance!
I use Pages in XBAPs the exact same way I would use a Window object in WPF. That is to say, rarely.
I usually have one Page/Window for my application and that is it. Switching the current view is usually done by switching a CurrentView property in my ApplicationViewModel, which changes what View is displayed in the main page.
I use UserControls when I want to create some kind of generic control, or for my Views. My Views can also be DataTemplates, and it is not uncommon for me to have a UserControl View that also has other Views in the UserControl.Resources (providing that all Views are related)
For example, I might have a UserControl called ProductsView which is the View that displays a list of Product objects, and the UserControl.Resources will contain a DataTemplate called ProductView which defines how WPF should display the ProductModel.

User controls are not available in the toolbox in VS2010

I have created the WPF user control and WPF window in class library project. Controls are public.
These controls are available for other project of the same solution. I can see them in the toolbox of the VS2010 when i add project reference from the WPF application project.
However, when i create some WPF application project outside the solution and add reference to the my user control library project, the controls do not appear in the toolbox! (My applications XAML file is open when I try to see them in toolbox to drag-drop on the application's main XAML)
What makes the controls avilable to the outside world when their assembly is referenced by the consumers?
Try right clicking on the toolbox and selecting Choose Items From that form click browse and select your DLL. That should put the controls in the toolbox for you.
I think the problem is that in your new WPF project you need to set an XML namespace where you reference your user control library. Then you can use your controls in the XAML.
For example :
thats an xml namespace definition in the XAML:
xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;
assembly=Microsoft.Phone.Controls.Toolkit"
And how you can use a control from this control library
< toolkit:ListPicker />
I hope this will help you.
Right click inside the toolbox and select "Show All".

WPF how to integrate Ribbon in prism applications

I'm writing a prism application and would like to integrate Ribbon library in it. I want a Ribbon Window that would be used as a Shell with office-like tabs and tab groups. The modules should be loaded on demand depending on the tab selected by user. I don't want the tabs to be located in a region if this is avoidable. So I created a Ribbon window and some regions and get all kind of errors (cannot resolve dependency object, etc.). Is there somewhere a good example of such application or a tutorial? How to load the modules depending on the user's choice?
I started this thread but I didn't get an answer that could help me.
Thanks for any help and suggestions.
Have you implemented a RegionAdapter for the Ribbon? (I'm guessing you're trying to fill the Ribbon dynamically with a Region attached property)
See this link for details.
Make your shell a RibbonWindow and if you need commands over the whole application you can create applicationcommands.

Resources