Apply telerik themes to WPF Dialogs - wpf

How can I apply telerik themes to a dialog box eg for example; MessageBox, FolderBrowserDialog. In Wpf
Thanks in advance.

I assume you are using the windows forms System.Windows.Forms dialog boxes in wpf? If so, there is likely little hope for themeing them with Telerik WPF themes. You may be able to theme them with a telerik Windows Forms theme, but I am unsure, I don't really use Forms anymore.
If however you are using the Microsoft.Win32 namespaced dialogs, it is my understanding that they will use whatever theme is installed on the operating system by default. The following CodeProject article shows how to dig into the API, and may be of help to you, but it doesn't specifically say how to alter the theme.
http://www.codeproject.com/Articles/16276/Customizing-OpenFileDialog-in-NET

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.

I want to use Windows7 visual style in my C# projects

I want to make lists in a WinForms project like this one:
Is there an easy way to do it? or I have to code it by my self??
Would depend on whether or not you re using WinForms or WPF. In WPF, you could use list box templates:
http://msdn.microsoft.com/en-us/library/cc189093(v=vs.95).aspx. I think it would be harder in WinForms and I'm not aware of any controls that match the appearance you are looking for although you might check out the Telerik and DevExpress WinForm controls.

Getting WinForms menus and toolbars to use the system theme?

Is there a way to get WinForms controls MenuStrip and ToolStrip to rendering using the current system theme?
Normally the WinForms MenuStrip and ToolStrip controls have a RenderMode property, which points to a class that handles the rendering:
ToolStripSystemRenderer
ToolStripProfessionalRenderer
ManagerRenderMode
which defaults to whatever ToolStripManager.Renderer uses (i.e. Professional or System)
Neither of these renderers use the Windows system theme:
How can i get a .NET WinForms MenuStrip and ToolStrip control to use the system theme?
i could ask some related, but different, questions:
does the .NET FCL contain a ToolStripRenderer that implements "system" rendering?
has anyone written a ToolStripRenderer that implements "system" rendering?
hey i know its not exectly the answer you where looking for but telerik already did what you want,
i used there library and works great, so you can go either way you can use there library or maybe get some ideas from it here is there home page about winforms
hope this helps.

WPF App - How to obtain a reference to the corresponding System.Windows.Forms.Form?

In my WPF Project I have a WPF Window. I want to use Sticky Windows Solution in my WPF Project. The library wants only one parameter: the System.Windows.Forms.Form object.
Does it exist any way to obtain a Form object starting from a WPF Window object?
No, it's not possible. A WPF Window has no inheritance relation with a Windows Forms Form. However it would probably be possible to adapt the code from the library to mentioned so that it works with WPF...
The approach others have mentioned of refactoring Sticky Windows Solution to support WPF forms sounds like your best option. If you really want to treat a WPF form as a Windows Form, maybe the below will help:
Would this work?
Host your WPF form in an ElementHost
control. (ElementHost enables a WPF element to be treated as a Windows Form control.)
Create a simple Windows Form
containing only this ElementHost
control.
Use a reference to this Windows Form in
your Sticky Windows Solution.
While it's not possible, the article and code does present enough information for you to create a WPF version.

Need themes for the WPF Toolkit controls (especially the DataGrid)

I just downloaded the nice themes collection from the Codeplex WPF Themes site. I like the WhisterBlue and BureauBlue themes a lot, but neither contain any styles for the new controls included in the WPF Toolkit (DataGrid, DatePicker, and Calendar).
It seems like someone out there must have extended the themes to cover these controls, but I've had no luck finding them. So, if you have any leads, I'd love to hear them.
I should also mention that I've been trying to port a Silverlight version of the BureauBlue DataGrid theme to WPF (see: How do you port a theme from Silverlight to WPF?), but that has been quite unsuccessful so far.
WPFreakyStyley has extended all of its themes to the WPF Toolkit. You might be able to find one that matches the CodePlex theme you're using.
WPFreakyStyley
The WhistlerBlue theme is included in the Silverlight toolkit Oct 2009 in the preview band.
Actipro Software has a free, opensource project on CodePlex called the "WPF Control Contrib". It contains code that extends the functionality of the built-in DataGrid and includes five themes for the DataGrid: AeroNormal, Classic, LunaHomestead, LunaMetallic and LunaNormal
High Robotics has free WPF theme that can be applied to apps and does not have dolly glossy style.
But it requires at least WPF.NET 4 (WPF Toolkit was included in that version).
Also here is discussion about free wpf themes (MahApps.Metro, nukeaction and others).

Resources