WinForms controls sample projects - winforms

I need some sample projects from which students can learn how to use WinForms controls.
I can`t find nothing on web.
Thanks

The "Using Controls" category in the Windows Forms FAQ at windowclient.net contains some reading.

If you are ok with using a 3rd party control library, Component Factory's Toolkit has an extensive set of examples that are very well thought out and extremely helpful. Off the top of my head, I believe there are about 30 examples, each having its own Visual Studio Project, all rolled up in a single solution. You can get the toolkit here: http://www.componentfactory.com/free-windows-forms-controls.php

Related

How can I localize a resource in WPF?

I am learning about how to localize a project and using a book as a tutorial. I've added the UICulture to the .csproj and assembly files:
[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
But now the book says to update the elements with the UID and I don't know where to do it.
I have to invoke the msbuild (not sure form where) and need to use
msbuild/t:updateuid ProjectName.csproj.
How do I do this?
If I may suggest an alternative approach. I never liked the "default" Microsoft approach to localization in WPF, so way back in 2008 I started looking for alternatives. I eventually settled on a solution described in an article named "Simple WPF Localization" on CodeProject. It's a XAML markup extension and it also allows you to change languages on the fly, etc. Very simple to use.
The author now has a more capable, "advanced" version: Advanced WPF Localization that allows you to localize images, brushes, margins, etc. (it's all at the top of the article).
There are a few other such "libraries" available (some are on CodeProject as well), but I've been using this one for 3.5 years with no issues whatsoever. Might be worth looking into if the approach fits what you're doing.

DataAnnotations Validation only implemented in MVC?

I somehow missed the introduction of DataAnnotations. I’ve been looking at them off and on for the last couple of weeks. It seems like everything I’m finding ties back to MVC. Are there any full implementations for doing validation with WPF, WinForms, etc.?
If so, any pointers/links would be appreciated.
If not, are there plans to introduce integrated support in the future?
My current interests lie in WPF so that's really what I'm looking for.
TIA
Karl Shifflett from the Microsoft patterns and practices team has a detailed video on how to use the Data Annotations attributes in WPF. His source code is available via a link at the bottom of his blog post on his Stuff demo application.
Data Annotations is a nice middle ground between that and the ad-hoc validation one would normally see in the WPF books and tutorials and the more powerful Enterprise Validation Application Block that #Evan Larsen mentioned above. Plus, as you noticed, using Data Annotations allows for sharing of models with ASP.NET applications.
Regarding WPF, DataAnnotations support is not built in, but it shouldn't be too difficult to hook in to your own app.
The demo app of my open source library PDX shows one way to do it, but the documentation for 0.2 isn't quite finished yet :)
Here's another way to do it: http://babaandthepigman.wordpress.com/2010/02/14/wpf-commanding-and-data-annotations-validation/

Looking for source codes of silverlight application that uses PRISM framework

I'm new in silverlight and prism framework and I want to explore some working silverlight applications that are based on prism.
As well as the included samples, there's an interesting set of articles here, complete with source code.
There's also some source at Elegant Code which I found useful, as well as a whole list of examples and tutorials at Patterns and Practices Guidance.
Also be aware that there are many alternatives to Prisim, and you could always write your own simple MVVM architecture if you were interested in learning more about it. For more information, Jeremy Likeness has a great article over at code project about the architecture, entitled MVVM Explained. I found this to be hugely helpful when developing my first Silverlight MVVM application.
Check out Prism hands-on labs and quickstarts (make sure to scroll to the bottom of the page):
Also, you may find this episode on Understanding the Value of Prism useful.

WPF - Sample App, Step by Step

I'm new to WPF development. Is anyone aware of a site or resource that builds a somewhat simple WPF application step by step, with ample explanation and/or documentation?
Scott Hanselman has a series of blog posts in which he builds a WPF application called "BabySmash", sounds like it might be along the lines of what you're looking for. The first post is here, and all of the posts can be found under the BabySmash category on his site.
Months before I was also searching for stuffs like what you asked. Here I can provide you the best link for building a WPF application step by step with total documentation. This project demonstrates where to use which controls at what extend.
http://blogs.msdn.com/b/tims/archive/2007/06/13/wpf-hands-on-lab-build-an-outlook-2007-ui-clone.aspx
It is a hands-on lab that demonstrates the steps to create a user interface for business applications using WPF and Expression Blend.
Have a nice day.

WinForm Controls for .NET Compact Framework

I'm looking to invest in a UI control toolkit for a Compact Framework 3.5 project for Windows Mobile 5 and later. All I can find is the Resco MobileForms Toolkit (http://www.resco.net/developer/mobileformstoolkit/overview.aspx). I have two questions...
Are there any other good WinForm control collections out there?
Any experience with the Resco controls? How have they been?
What about the Smart Device Framework? The GUI components don't look as fancy as those in the Resco toolkit, but SDF seems to have a broader basic selection (SDF doc). I've never used either (have only used MFC on WinCE), but would also like to hear about CF development experiences.
MiraByte has these controls.
+1 on the Resco Toolkit. I've used it for quite some time now and I must say that if you need slick UI, they're the way to go. Apart from what Ivan's already said, the WYSIWYG template designers for thing like AdvancedList or DetailView let you do rather impressive things pretty easily.

Resources