Good WPF or silverlight windows gadget examples - wpf

Does anyone have a good example of a WPF or silverlight windows gadget?

norlando02,
Hello, I've come across a few sidebar gadget demos and tutorials online. I'll list them here for your review. Hopefully some of them catch your eye, and help you in your endeavorers.
WPF:
http://www.codeproject.com/KB/WPF/3d-gadget-WPF.aspx
http://www.codeproject.com/KB/WPF/WPFGadget.aspx
Part 1: http://blogs.msdn.com/karstenj/default.aspx
Part 2: http://blogs.msdn.com/karstenj/archive/2006/10/09/activex-wpf-gadget.aspx
This one was removed from the source site, but it still has some nice (cached) information: http://docs.google.com/viewer?a=v&q=cache:2G8BDYIxUnMJ:www.stoyanoff.info/code/wss/A%2520Guide%2520to%2520Writing%2520WPF%2520Gadgets.pdf+A+Guide+to+Developing+Windows+Presentation+Foundation+Gadgets+for+Windows+Sidebar&hl=en&gl=us&pid=bl&srcid=ADGEESiddo987Inzj03id5U2_bYiYiIvdoRbI9H6R74GF7BXFTJHVDwrxYexKwLQprAsHELSA6EG3aQKdfgii0Q2EqkOJwzk2_qa2n1pAdweTRRt4mTE1n4-LDhdpRnbvRCmjSA5Dvkt&sig=AHIEtbRvXs8b4Z5iUYwIds1yQhkg-1L-mw (No longer cached)
Silverlight:
http://www.lazarciuc.ro/ioan/2008/08/02/creating-a-vista-sidebar-gadget-using-microsoft-silverlight/
http://blog.benhall.me.uk/2007/05/vista-sidebar-gadget-using-silverlight.html
Stack Overflow: Silverlight 2 Sidebar Gadget
Detailed Video: http://channel9.msdn.com/posts/Charles_Sterling/Building-a-Windows-Side-Bar-gadget-for-tracking-traffic/
I hope thses references help,
Thanks!

Related

Missing documentation for Prism 7 WPF

When I visit https://prismlibrary.com/docs/wpf/ most of the topics in the left hand navigation menu have no content. Is there something wrong with the site or is there somewhere else I should be looking. I am trying desperately to work through converting an older Prism 6 app to Prism 7 and there are so many breaking changes that I am unable to find any documentation to explain what the new approach should be. Most of the WPF samples on GitHub, also use Prism 6 not 7.
enter image description here
Brian Lagunas, who owns Prism had started working on the docs for Prism 7 on his twitch stream. But they never got completed, which is why you only see sections defined and no content added
Check out his youtube channel (https://www.youtube.com/brianlagunas), there are videos on Prism. He also streams tuesdays and thursdays on twitch.

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

Windows Phone 7 Charting/Graphing Controls

We're working on a Windows Phone 7 prototype application and we need a Graphing/Charting control to work with. We looked at the Silverlight Toolkit, which has some controls that look like they would work great. However, we can't get that to work. Whenever we add a control to the XAML from that toolkit, it will throw an exception when trying to load the XAML at runtime, even though it appears to work in the designer. I think that it's because there's some dependencies that the phone doesn't actually support.
Does anyone know how to fix the problem or know of charting software that works on Windows Phone 7?
Here's an example of code that doesn't work. We downloaded and installed the 4.0 beta of Silverlight Toolkit. Added the DLL as a reference. Added this to import the namespace:
xmlns:c="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"`
then added this to make a chart:
<c:Chart>
<c:PieSeries>
<c:PieSeries.ItemsSource>
<l:IntList>
<sys:Int32>23</sys:Int32>
<sys:Int32>2</sys:Int32>
<sys:Int32>1</sys:Int32>
<sys:Int32>34</sys:Int32>
</l:IntList>
</c:PieSeries.ItemsSource>
</c:PieSeries>
</c:Chart>
the designer shows the pie perfectly, however when I try to compile and deploy it throws an exception saying that it can't find the MainPage.xaml. Which leads me to believe that MainPage.xaml isn't compilign correctly (not sure, as I'm still a newbie at Silverlight)
Here's the exception:
System.Windows.Markup.XamlParseException occurred
Message=2255 An error has occurred. [Line: 36 Position: 2]
LineNumber=36
LinePosition=2
StackTrace:
...
on this line:
System.Windows.Application.LoadComponent(this, new System.Uri("/Twitpic;component/MainPage.xaml", System.UriKind.Relative));
You can probably reuse some of the things provided by the silverlight toolkit, which is open source:
http://silverlight.codeplex.com/Wikipage
You might have to recompile some stuff against the win phone APIs, but it should work :-)
It looks like someone else has had the same issue as you and solved it by using the Silverlight Toolkit version 3
http://silverlightfeeds.com/post/2502/Windows_Phone_7_RTM_charting_using_the_Silverlight_Control_Toolkit.aspx
Just found these free WP7 charts: amCharts for Windows Phone 7
If you are looking for great charting on WP7, I suggest Visifire. Note that its a commercial offering. Has gesture support too! I've seen very less charting vendors who've optimized charting for mobile-form-factor like these guys do.
You can try MS Toolkit, if you are looking for free basic charts.
Playing around more, I was actually able to get Visifire to work. Just had to browse and add the reference to System.Windows.Browser. I don't know if this is the best way to make it work. But it'll do until the Silverlight Toolkit gets updated.
Macadamian team developed and gives for free a Chart Control. You can pick it up at http://themobileexperience.macadamian.com/2010/05/chart-control-for-windows-phone-7.html
Ani
Just a quick plug for my own graph control I recently released to open source:
Check it out, it scales to hundreds of thousands of points and responds to pinch,zoom,translate and tap gestures:
http://touchgraphwp7.codeplex.com/
A couple of options worth a look.
David Anson's blog and thread posting on charting.
Chart Control for Phone
Why didn't I think of that in the first place? [Windows Phone 7 Charting example updated to include reusable, platform-consistent Style and Templates] - Delay's Blog
And a commercial offering.
Silverlight, WPF & WP7 Chart Controls
This one too
http://www.visiblox.com/examples

Silverlight 2 Drag and Drop tutorials

I'm wondering if people can suggest the best tutorial that will walk me through the best way to do Drag and Drop with control collision detection etc, using MS Silverlight V2.
I've done the Jesse Liberty tutorials at Silverlight.net, and they were a good introduction, but I'm looking for something a bit deeper.
Suggestions?
UPDATE: Here is the summary of the list of answers for convenience:
http://www.adefwebserver.com/DotNetNukeHELP/Misc/Silverlight/DragAndDropTest/
Lee’s corner
Corey Schuman
MARTIN GRAYSON: ADVENTURES OF A 'DEVIGNER'
http://www.codeplex.com/silverlightdragdrop
Nick Polyak’s Software Blog
Here is a page that explained the solution for my use.
Silverlight 2 Drag, Drop, and Import Content Example
Here are three more pages that have examples and code:
http://leeontech.wordpress.com/2008/04/11/drag-and-drop-in-silverlight/
http://simplesilverlight.wordpress.com/2008/08/13/drag-and-drop-silverlight-example/
http://blogs.msdn.com/mgrayson/archive/2008/08/18/silverlight-2-samples-dragging-docking-expanding-panels-part-2.aspx
A codeplex project for drag and drop http://www.codeplex.com/silverlightdragdrop
The following tutorial is helpful, and the author has posted code, including a drag and drop control you can download:
http://nickssoftwareblog.com/2008/10/07/silverlight-20-in-examples-part-drag-and-drop-inside-out/
I am currently using this control in a new Silverlight application.

Resources