how to provide toobox and designer info for WPF Controls - wpf

I'm making a mixed UserControl and Control Library in WPF. I need to provide icons , other details and designer support etc... that is needed for WPF Control Library Authoring. Please help me.
A well documented sample could be better

If you search the web you will find there are a few good tutorials on adding design-time support. It is rather a broad subject to answer here! Take a look at the following:
XPlorerBar : Part 2 - Adding design-time support to the WPF explorer bar control
There is also an entire MSDN chapter on the subject:
WPF Designer Extensibility

Related

dragable controls in runtime Similar to a toolbox in wpf

I want to create a project in WPF for designing a custom report.
For this, I need a library to add controls to a panel, canvas, etc. with drag and drop at runtime.
Controls should be resizable and moveable with the mouse. Finally I want to print this.
Telerik's WPF controls contain the Diagram Control which supports the features you mention out of the box. I use it for a very similar scenario as you describe and it works well. The might be a counterpart offered by Infragistics as well.
With .NET framework's built in features and/or free libraries you will able to cover the drag&drop part. You will have to implement the rest yourself which is possible but too much to ask for one question.
Late reply, but I came across this. Take a look at this
There are 4 parts that show how to do a toolbox with what you're looking for.

Is there a document highlighting WPF and Silverlight controls available in the framework?

I'm looking for something like a pdf or anything else that would show a chart of available controls in SL and/or WPF.
Ideally, the chart should have a drawing of the control, some succinct description and the hierarchy if possible.
Has anyone seen such a thing? Freeware or Payware, can even be from a book I could buy.
The following MSDN link lists the controls within the Silverlight SDK:
http://msdn.microsoft.com/en-us/library/cc189048(VS.95).aspx
You can try the sdk controls live following this link:
http://samples.msdn.microsoft.com/Silverlight/SampleBrowser/#/?sref=HomePage
The controls within the Silverlight Toolkit can be found here:
http://silverlight.codeplex.com/
Also, there are plenty of third party controls for Silverlight. The following link contains a list to some of them (free or not):
http://timheuer.com/blog/archive/2009/01/28/comprehensive-list-of-silverlight-controls.aspx
The controls that are shipped with the platform are fairly straightforward, so I'm not sure that would even make sense - i.e. the basic buttons, input box, text block, etc.
As for the controls that are shipped with the Toolkit, which is the richer feature set released out of band in relation to the Silverlight trunk, you can preview everything you asked for here:
http://www.silverlight.net/content/samples/sl4/toolkitcontrolsamples/run/default.html
What's more, the source code for the preview is included with the tool kit so it's very easy to see how any of those controls were used.

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.

Where to find Generic.xaml for native WPF controls?

Where to find Generic.xaml (or other code with the default look) for native WPF controls such as Button, CheckBox, TextBox, etc?
In Silverlight (and I know that your question is about WPF) this information is more accessible than in WPF. You can get this information from any of these sources:
Control Styles and Templates on MSDN.
You can look at the resources of the relevant Silverlight assembly and extract the themes/generic.xaml embedded in a resource. I use Reflector to do this.
You can extract the control template of a specific control using a tool. I use Expression Blend to do this. This also works for WPF.
Unfortunately the XAML for native controls is not directly available as a file. You need to use a program for peeking into the WPF assemblies and extracting that info. I personally have used the Mole for Visual Studio tool, which has done the job very well. It integrates as a debugger-visualiser, which is quite handy.

Resources