Dynamic DataTemplate switching - silverlight

I am trying to achieve the same behavior as indicated in the following post. The trouble is this post solves the problem for WPF.
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/4fd42590-8375-46d0-b7bc-6c217df0f0ba/
Any ideas on how to do this in Silverlight 2.0?
Thanks
Chris

Wait for DynamicResources to be supported in a future version. If you need to do it once (e.g. at load time), the the Silverlight Toolkit's ImplicitStyleManager is a good solution (http://silverlight.codeplex.com)...otherwise you'll have to wait. WPF is more feature rich than SL2.

Thanks, I will look into it.
We are currently using some of the controls provided by ComponentOne, and they implemented a DataTemplateSelector (similar to the WPF implementation) for their ItemsControl.
That is the approach I am using currently, but there are still some issues I am working through.
Thanks Again.

Related

how to make Cover Flow in WPF?

I have seen Cover Flow effect using WPF, and I'm looking for a tutorial. Where I can find the tutorial?
WPF Cover Flow Tutorial
Telerik has a ready to use coverflow control, which works fine is you're willing to pay for it.
As per this question:
ElementFlow control is inside the codeplex project called FluidKit should work for you.
It pretty much requires no tutorial to get going.

How to add multiple series to wpf chart using MVVM

I can do this for single series according to this article.
but I could t do it for multiple series. If some one knows a way please help me..
http://bkiener.wordpress.com/2010/02/07/databinding-multi-series-charts/
This is the one that I use in my WPF/MVVM application. It too, was written for Silverlight, but it works for WPF as well. In fact, it looks the same as the example that #anivas provided, but I prefer this one as it describes the implementation better.
WPF chart doesn't support dynamic binding of series collection. You can easily achieve this using an attached property. This is an example in Silverlight but you can use it in WPF as well.

AutoComplete-ready ComboBox in Silverlight 3

Has anybody out there had a situation where you needed to implement an "editable" ComboBox in Silverlight? My client wants a ComboBox in their UI that allows the user to place focus on the selection box and start typing to automatically pull up the desired value from the available items, rather than requiring use of the drop-down list.
This feature is available, I know, in several implementations from third parties. For example, you can make this happen fairly easily with Telerik's RadControls for Silverlight. However, my client is restricted to using the Silverlight 3 Toolkit, with no third-party tools or plug-ins.
Any suggestions for a quick, down-and-dirty implementation? Any guidance or links are appreciated!
Thanks,
Jeff
Okay, we had the same problem.
We went ahead and used the AutoCompleteBox from the Silverlight 3 tookit. Their implementation has a lot of things missing that we wanted. Because of these limitations, we created our own that inherited from it. It worked great and was very simple to do. Any tutorial for making your own control that inherits from another will help you.
Have fun. Since the toolkit is open source, you can always look at the code for guidance.
You can see the samples from the toolkit here: https://www.silverlight.net/content/samples/sl3/toolkitcontrolsamples/run/default.html

Change WinForms application language at runtime

It is possible to change the language of a localized WinForms application at runtime? I tried using the method described here: http://www.dotnetcurry.com/ShowArticle.aspx?ID=174 but for example the control tooltips are not refreshed. I'm sure that I might face other problems too.
Is there any safe (0 bugs) way to do it?
Guy Smith-Ferrier wrote the book on .NET internationalization (literally), and here is the code for his solution: http://www.dotneti18n.com/Downloads.aspx
In my experience it doesn't work perfectly, failing on DevExpress controls for example.

WPF Docking Manager with Databinding support

Does anyone know about a Docking Control like Visual Studio for WPF, where Databinding for the Panes is supported?
I tried the DockManager from Infragistics and from Actipro, but they lack this support.
For example, the Panes for the content need to be bound through Databinding, so removing the Entity on the other side of the binding would also remove it from the DocumentHost.
Any Idea? Or a lightweight workaround for any control?
Full databinding support from every control is crucial for my project.
Thanks in advance.
You might consider AvalonDock on Codeplex. If it doesn't have the functionality you are looking for you can add it yourself since you get full source code!
I know this won't help the original poster but in case someone else comes across this with a similar question, there is a blog post with a sample using an attached property to implement binding support in the Infragistics XamDockManager.

Resources