WPF control and windows normal control - wpf

In a WinForms project there are a number of controls such as MenuStrip, OpenFileDialog, SaveFileDialog.
After a quick look, I can't seem to see the equivalents for these controls in the WPF toolbox.
Is there any way to gain access to these or do they exist in another form?

There are a number of different resources you can use for finding the type of control you need.
Have you looked in the WPF Toolkit?
Have you investigated any third party control vendors?
(Telerik, DevExpress, ComponentOne, Infragistics)
Here's an excellent link comparing the WinForms and WPF control equivalents.
You'd probably recieve a more detailed answer if you gave specifics as to which control you're looking for.

you can add a winforms host into the project but which controls are you after as the wpf does have a decent amount of controls and generally does more in the ui department (but pays in speed usually)

Related

Using both Telerik UI Controls and WPF Controls With Same Look&Feel

I would like to use both Telerik WPF UI Controls and WPF own controls in the same project. I think WPF is quite good and I need only a few controls and themes from Telerik. However, when I mix them, not all WPF controls benefit from the themes of Telerik. I read that, Telerik only support a few of WPF controls like TextBox and etc. However, I could not find a way to achieve a WPF Window with a looking like RadWindow. I have been searching and found some answers about this topic, but I think they are a little bit disorganized.
In brief, I would like to use styles from Telerik for also other WPF Controls (non-Telerik ones), but I am not sure whether it is possible or not? When I use WPF Window and RADProgressBar together, of course it does not look very good. If mixing is not a good idea I am considering completely switching to WPF. I do not have much experience with Telerik and I do not want to struggle in a mess due to this mixed environment. I want to use both if it is possible to achieve a unified style for both controls (Telerik and non-Telerik).
Take a look at MahApps Metro (http://mahapps.com/), a WPF control toolkit that has styles to give your application a metro feel, as that is what a lot of the Telerik UI kit does as far as I can tell.

Silverlight custom controls

are there good books on developing custom controls for silverlight?
What I want is to create a grid-control that can also act as TreeList-control. Can you tell me what is a good base-class for such a control?
And another question: If I develop a control in Silverlight, how can I reuse my code for the same controls as WPF?
Do have to duplicate the code? I hope not...
Bye
Matthias
What I want is to create a grid-control that can also act as TreeList-control. Can you tell me what is a good base-class for such a control?
Basically, it depends on several factor and you have more options. In my opinion, I would choose to go with Panel, incase if I need more control during layout and arrange process.
Or else, you could simply extend from the ItemsControl and write you own control. But if you are planning for much bigger implementation, then I would highly suggest you to read the implementation of GridControl available in the WPF Toolkit.
Tree List Control On Code Project
And another question: If I develop a control in Silverlight, how can I reuse my code for the same controls as WPF?
Sharing Code Between WPF and Silverlight From MSDN

Visual Studios Controls

Is there a way to download more controls or anything, because I have seen a few things in other programs I don't think I've seen in the toolbox. Can you download new ones, or did the company somehow custom make a control? If it was custom made, are there any tutorials I can take a look at that tell how to make your own?
Some companies make third party controls for Winforms - Telerik is one I know of.
Personally, I prefer to make my own controls based on the existing WinForms ones, as I have more control over them - this prevents my products from having bugs which just can't be fixed. I can also tweak the controls to do exactly what I need, rather than choosing a closest match. Building custom controls is relatively easy if you have the experience.
There is a basic tutorial on CodeProject which shows how to create a fancy Button. After that you should be able to figure out how to customize more complex controls.
Side-note:
While it's reasonably easy to develop custom controls in WinForms if you have the time to practice, WPF is a much better framework for building custom controls. WPF controls are designed specifically for customization, so there is a lot more flexibility.

wpf vs winforms by means of customizeable UI

Which technology (WPF or Winforms) should be used if UI supposed to be highly customizable like controls layout/design could be change by user and such sort of UI customization.
Kindly mention best practices along to achieve that...
I just recently developed a designer in both WinForms (company req) and WPF (to see how much better it was). WPF has a definate edge, especially when it comes to nicer looking controls and control transparency.
This was my first actual WPF project, other than just messing around, so I was learning as I went. I found this series on creating a diagram designer very helpful. I didn't really do the same things that this article talks about, but more of a hybrid between that and my WinForms app.
I have to admit that the UI functionality was up and running much faster in the WPF version than with the WinForms version.
WPF I have found the easiest to create controls on a fly. Because I can just attach them as child controls to the parent, and the Grids, Dock Panels, just make life easier.
I found WinForms to be clunky to always work with. However I come from a Web background and Xaml makes sense to me.
WPF controls are design and lookless. That means you have a default view of them, but everything detail of a WPF control can be overridden. It's almost akin to using CSS. In the WPF world, you do not create custom controls like you do in WinForms. The main thing in WPF world is "styling" controls and defining a style for them. It just happens that the style also controls the layout and the form of the controls.
WPF is FAR superior for designing and style of UI. Check out these two top WPF companies and tell me if this stuff is easy to do in WinForms:
Cynergy Systems: http://www.cynergysystems.com/
Thirteen23: http://www.thirteen23.com/

Are there good WPF control libraries out there?

Do you know any good WPF control library (even commercial) and what experiences have you made with them?
Telerik has a commercial line of WPF controls, as well as WinForms, and Silverlight. They are very high quality, and on the high end in terms of $$$, but they're worth their weight in gold if you're going to utilize them.
I've used their web products and they are well made. They even have sample code on their site and demos so you can get started easily.
Odyssey is a nice set of controls with a Ribbon menu control and Outlook-style bars.
You may have problems using them in XBAP applications though.
DevExpress have a rich set as well.
Infragistics has some excellent WPF and WinForm controls (commercial). I'll admit I have only used their WinForm controls, but if their WPF controls are anything similar, they will be great.

Resources