Follow @PDSAInc WPF,.NET - Paul Sheriff's Blog for the Real World

Paul Sheriff's Blog for the Real World

This blog is to share my tips and tricks garnered over 20+ years in the IT industry

Paul's Favorites

Browse by Tags

All Tags » WPF » .NET (RSS)
Understanding XAML Screen Layout
When you first start designing XAML screens in either WPF or Silverlight there are several approaches you can take. You can just draw controls on a Grid and let the controls figure out where they are in relation to one another and the Window via the Margin...
Synch a ComboBox in WPF with Foreign Keys
In most database applications you will have foreign keys to express a relationship between one table and another. Many times this takes the form of a lookup table where you want the user to pick from a selection of items such as an Employee Type for an...
Posted: Jun 08 2011, 12:09 PM by psheriff | with 2 comment(s)
Filed under: ,
The Basics of MVVM in WPF
This is a follow-up to my previous blog post on the Basics of MVVM in which I used Silverlight to illustrate how to use a basic MVVM design. I had so many emails asking for a WPF version, I decided to post this sample using WPF. Load a WPF List Box without...
Posted: May 27 2011, 12:07 PM by psheriff | with no comments
Filed under: , ,
UserAppDataPath in WPF
In Windows Forms applications you were able to get to your user's roaming profile directory very easily using the Application.UserAppDataPath property. This folder allows you to store information for your program in a custom folder specifically for your...
WPF Login Verification Using Active Directory
Back in October of 2009 I created a WPF login screen (Figure 1) that just showed how to create the layout for a login screen. That one sample is probably the most downloaded sample we have. So in this blog post, I thought I would update that screen and...
Posted: Feb 28 2011, 03:54 PM by psheriff | with 5 comment(s)
Filed under: ,
WPF ListView as a DataGrid – Part 3
I have had a lot of great feedback on the blog post about turning the ListView into a DataGrid by creating GridViewColumn objects on the fly. So, in the last 2 parts, I showed a couple of different methods for accomplishing this. Let’s now look at one...
Posted: May 24 2010, 03:52 PM by psheriff | with no comments
Filed under: , ,
WPF ListView as a DataGrid – Part 2
In my last blog post I showed you how to create GridViewColumn objects on the fly from the meta-data in a DataTable. By doing this you can create columns for a ListView at runtime instead of having to pre-define each ListView for each different DataTable...
Posted: Mar 29 2010, 11:04 AM by psheriff | with 3 comment(s)
Filed under: ,
Using a WPF ListView as a DataGrid
Many people like to view data in a grid format of rows and columns. WPF did not come with a data grid control that automatically creates rows and columns for you based on the object you pass it. However, the WPF Toolkit can be downloaded from CodePlex...
Posted: Mar 08 2010, 11:56 AM by psheriff | with 8 comment(s)
Filed under: ,
Bind ObjectDataProvider Method Parameters in WPF
It is absolutely amazing how much you can do in WPF without writing a line of code. If you take full advantage of the data-binding features in WPF you will find that a lot of the code you used to write to move data from one control to another, or move...
Posted: Feb 23 2010, 10:25 PM by psheriff | with 7 comment(s)
Filed under: ,
Use XML Files with WPF
XML files are very handy for storing and display data that you might not want to keep in a database. It is wonderful choice for prototyping since you do not need to setup any database tables, connection strings and data objects. Instead you can send a...
Posted: Feb 01 2010, 02:18 PM by psheriff | with no comments
Filed under: ,
More Posts Next page »