Paul Sheriff's Blog for the Real World

This blog is for my ramblings and to share my tips, tricks and advice garnered over 20+ years in the IT industry. I like to focus on topics that affect real-world business application developers.

Browse by Tags

All Tags » .NET (RSS)
PALS Learning Event: WPF Part 1 - November 18, 2009 from 8am - 12:30pm PST
Hi All, I will be giving 4 hours of real-world training on WPF this Wednesday (Nov. 18th, 2009). If you are new to WPF and wanting to learn how to use WPF to create business applications, this is a great place to start. The cost for this seminar is only...
Posted: Nov 16 2009, 05:48 PM by psheriff | with no comments
Filed under: ,
PDC BOF Session on Exception Management: Wed. Oct. 18th from 4:30pm - 5:30pm
If anyone is at PDC this week, I will be moderating a session on Exception Management. If you would like to discuss this topic with your other peers at PDC, please stop by! Hope to see you there! Paul
Posted: Nov 16 2009, 02:17 PM by psheriff | with no comments
Filed under: , ,
Change Templates Dynamically in WPF
WPF has the flexibility to modify the look of your controls dynamically at runtime with just a few lines of code. Take a look at Figures 1 and 2 and you will see two different views of the same list box and data. To accomplish this, you simply need to...
Posted: Nov 16 2009, 12:43 PM by psheriff | with 1 comment(s)
Filed under: ,
Creating a Base Window Class in WPF
Unlike Windows Forms, there is no Visual Inheritance in WPF. Luckily you don’t need visual inheritance as you can use User Controls to get a re-usable UI. There are times, however, when you want a base Window class so you can have common functionality...
Posted: Nov 02 2009, 03:42 PM by psheriff | with 3 comment(s)
Filed under: ,
Create a Login Screen in Silverlight 3
After my last blog post on “Create a Login Window in WPF”, I had a lot of requests for how to create the same login screen in Silverlight 3. There are actually just a few changes that had to be made to get the same look in feel in Silverlight 3. Figure...
Create a Login Window in WPF
Most business applications require some sort of security system. You can always use Windows Authentication to authenticate a user, but sometimes you might want your own authentication scheme. When you do, you will need to create a login screen for your...
Posted: Oct 27 2009, 11:52 PM by psheriff | with 2 comment(s)
Filed under: ,
Binding to Config Settings in WPF
Almost every application has a configuration file used to store global settings. What would be cool is to have a global settings class that reads this data from the .Config file, then can be used to bind to UI elements within your WPF application. This...
Posted: Oct 19 2009, 10:49 PM by psheriff | with no comments
Filed under: ,
Creating Border-less Windows in WPF
When creating a splash screen or to just have a different look for the windows in your WPF application, you might wish to eliminate the border to give it a custom look (see Figure 1). This can be done very easily with WPF. Figure 1: A WPF window that...
Posted: Oct 12 2009, 10:24 AM by psheriff | with 2 comment(s)
Filed under: ,
Using a WPF StackPanel for Business Forms
In WPF if you want to layout a typical business form like the one shown in Figure 1, most people would use a Grid control with rows and columns. However, you may also use a StackPanel control. While sometimes you might need the re-sizing capabilities...
Posted: Sep 30 2009, 02:27 PM by psheriff | with 2 comment(s)
Filed under: ,
Split Name into First and Last
Not too long ago we received a text file of customer names. The problem with the file is it just had one field "Name". One of the requirements of our database application was to have a first name field and a last name field so our customer could search...
More Posts Next page »