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 » WPF (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: ,
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 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: ,
Why you Should Move to WPF
If you have not taken a look at WPF yet, you really should. WPF is a great desktop development platform. Granted all of the of the tools are not yet in place, but Microsoft is pouring millions of dollars into developing WPF tools. Windows Forms is now...
Posted: Aug 12 2009, 11:41 AM by psheriff | with 7 comment(s)
Filed under: ,
More Posts