PRISM 5 + MahApps.Metro - wpf

Does anyone tried hooking up PRISM 5 and Mahapps.Metro? Is Mahapps compitable with PRISM? I see its MetroWindow is inheriting from Window though.
Kindly guide me what could be the issue I may encounter going forward.

I have just made a quick sample in order to verify they would be compatible. You may find the HelloWorld QuickStart with the MahApps.Metro package configured:
HelloWorldWithMahApps
In order to configure the Shell View, the configuration would be straightforward on the xaml page and its Code Behind, where you would make it inherit from MetroWindow with no major problems.
You may find helpful the following MahApps Tutorial Quickstart Guide:
MahApps.Metro Quick Start
Regards.

Here you can find a working example on how you can use MahApps with Prism.
It shows you how to use
Tiles
Flyouts
Popups
I18n
Themes
Right|LeftWindowCommands

Related

Create a MahApps.Metro custom dialog and displaying it - Step by step howto please

using VS 2013 and MahApps. I want to create a simple totally custion dialog, and am lost.
I would like to use XAML, but only code is also OK. The examples and documentations are very limited. Anyone can walk me through this?
Thanks!
There's already an answer from MahApps author.
He suggested to replace the dialog template with a style.
Also, there's a SimpleChildWindow project that he's supporting. It's not totally custom but surely simple.

WPF with Unity Container - looking for a sample code to register and resolve views and view models

i am a newbie to WPF with Prism, trying to create a new application using Prism Unity. When the application starts, it should load a LoginView, After the user enters a valid passcode, LoginView should be replaced with next screen.
Having difficulty understanding the Prism Unity. Any help is appreciated greatly . A Complete sample would be awesome.
Thanks
You may find useful the following MSDN Prism Guide chapter which may help you understand how Prism with Unity works:
3: Managing Dependencies Between Components Using the Prism Library 5.0 for WPF
In addition, you can find several QuickStart samples that describe the implementation of Navigation feature or MVVM pattern for example:
View-Switching Navigation QuickStart
MVVM QuickStart
UI Composition QuickStart
Based on your scenario, a possible solution would be to define a ContentControl Region in the Shell View, registering the every View in the Region and Activating the LoginView. Then, you would be able to Navigate through every View that is registered in that Region.
I hope this helped you,
Regard.

Silverlight tool kit accordion problem

I have installed silverlight 4 toolkit. It was told that there i can find accordion by just using toolkit:Accordion. But in my tool box i dont see the Accordion or when i manually write the code it gives me error and says that accordion is not found.
Some one please give me some best link where i can go through all available controls and use them.
Thanks in advance.
Try using NuGet to install the toolkit. It will add all the required references and their dependencies.
You can look at the sample code for the Controls Browser to compare what namespaces are being referenced.

WPF Prism and Ribbon samples/tutorials

I'm looking for a WPF prism with ribbon application samples and tutorials. I have found many that cover prism or ribbon but only a few sources provide any information about implementating those two together in one application. No course code usually in available tough. An example with a few simple modules and a classical ribbon tab control would be perfect for me to start.
Thanks for any help.
Regards,
Enzo.
Edit:
I should add that by combining the two I want to be able to load different modules depending on the ribbon tab selected by user.
You can find some info on a customized region adapter for the WPF Ribbon Preview here.
Regarding the loading of modules on demand in Prism, here is another link to MSDN, covering the topic.
David Veeneman wrote a nice article about Ribbon & Prism on CodeProject
http://www.codeproject.com/KB/WPF/ViewSwitchingAppsPrism4.aspx
It includes RegionAdapter for Ribbon .
There is "Southridge Hands-On Labs" on Codeplex (download on WPF futures page). It is quite extensive, but documentation and source code are not in sync (it looks they updated labs source, but not accompanying documentation), so it can be a pain sometimes to get what is going on.
It is based on Microsoft's WPF Ribbon Preview library.
Edit:
I am not aware about any tutorial that covers both. You can check series of videos on Prism and Silverlight by Mike Taulty. There is also source code for application made in last video.
Then you can combine knowledge from Southridge labs and this Prism tutorial.
I ran into a similar problem this weekend and after much reading and searching came up with this code that I posted for review
https://codereview.stackexchange.com/questions/429/mvvm-wpf-ribbon-v4-with-prism

Wpf template gallery

Does anybody know of a gallery of controltemplates, that I could use to learn more about what is possible with the different control types?
look at : https://github.com/jogibear9988/wpftoolkit
I've forked the Theming Package from Codeplex and switched to .Net 4.0
I'm not familiar with a gallery of control templates, though there are lots of examples on the internet. If you have a specific control you'd like to template (e.g. a ListBox or a Button), I would search for specific control templates that relate to that control. You will find countless options.
If you want to learn about what is possible with control templates, I'd suggest picking up one of the many great WPF books. A few I'd recommend are:
WPF Unleashed (by Adam Nathan)
Applications = Code + Markup by (Charles Petzold)
WPF Control Development Unleashed (by Pavan Podila and Kevin Hoffman)
You can completely recreate the visual tree of an element with a control template, so the possibilities are limitless. You can also check out the MSDN Help Topics on control styles and templates:
Control Styles and Templates
Using Templates to Customize WPF Controls
Hope that helps.
There's this one
http://www.xamltemplates.net/
There's this one
http://www.reuxables.com/
There's this one
http://www.codeplex.com/Silverlight/Wiki/View.aspx?title=Silverlight%20Toolkit%20Overview%20Part%203&referringTitle=Home
As a word of warning, all templates are not created equal - and not all templates will work across all XAML frameworks. For example if it is written for SL it may not work for WinRT. The same for WPF. But this list will get you started. In the end, you will probably create your own.

Resources