David Sackstein's Blog
"The more that you learn, the more places you'll go.”, Dr. Seuss
Sign in
|
Join
|
Help
Home
Contact
RSS
Atom
Comments RSS
Search
Tags
3D
Adobe Flash
Animation
ASMX Web Services
ATL
C++
Clean Code
COM
DataBinding
Design Patterns
DEV
Developer Academy
DirectShow
Eclipse
Extensibility
Interop
MCPD
MediaElement
MSXML
MVVM
Parallel Extensions
Security
Silverlight
Sockets
SQL Server 2008
Tips and Tricks
Transactions
TreeView
Unity
Video
Visual Studio
Visual Studio 2010
WCF
Windows 7
WPF
News
Navigation
Home
All Posts
RSS
Popular Tags
Archives
December 2010 (3)
April 2010 (3)
March 2010 (2)
October 2009 (1)
September 2009 (2)
August 2009 (5)
July 2009 (3)
June 2009 (20)
May 2009 (10)
April 2009 (5)
March 2009 (1)
February 2009 (1)
January 2009 (2)
December 2008 (12)
April 2009 - Posts
3
Comments
ISynchronizedInvoke and WPF
by
David Sackstein
I have seen a lot of discussion out there about why Dispatchers in WPF don’t implement ISynchronizedInvoke. I don’t have the answer, but I can offer you an extension method I use to simplify the synchronization of all those asynchronous events onto a window thread. Here is the extension method: public static class Extensions { static public void InvokeIfRequired( this Dispatcher dispatcher, Action action) ...
0
Comments
A Validated TextBox as a WPF UserControl
by
David Sackstein
In this post I will be describing a WPF UserControl that I wrote to handle the validation of a text box. The complete source code can be downloaded here . Requirements I would like to be able to use the control like this: < local : ValidatedTextBox x : Name ="tbAnInteger"> < local : ValidatedTextBox.Text > < Binding Path ="AnInteger"...
0
Comments
Aggregate CheckBox for DataGridCheckBoxColumn (Part 3)
by
David Sackstein
I described the problem at hand in the first post in this series. In the previous post I described the high level design of the source code that demonstrates my solution. In this post, I will describe the EmployeeUserControl and summarize. You can download the complete source code for the article here . DataBinding Design First, let’s decide what should be bound to what. From the very start we made the fairly obvious decision to use an ObservableCollection<Employee> as out ItemsSource. Combined...
תגים:
DEV
,
WPF
,
DataBinding
1
Comments
Aggregate CheckBox for DataGridCheckBoxColumn (Part 2)
by
David Sackstein
In the previous post I described the requirement to create an aggregate CheckBox for a DataGridCheckBoxColumn. You can download the source code for my solution here . In this post I describe the high level design of my solution as documentation for the source code. If you are looking for the WPF techniques themselves, you can skip to the next post ( Part 3 ). Setting the Scene The project contains three assemblies: PresentationLayer: This is a WPF window application. UserControls: A class library...
תגים:
DEV
,
WPF
,
DataBinding
2
Comments
Aggregate CheckBox for DataGridCheckBoxColumn (Part 1)
by
David Sackstein
It often amazes me to see how easily one can accomplish so much with WPF. And yet, let’s admit it, its can sometimes be darned hard to achieve some fairly trivial things. Here is a simple problem I worked quite hard on until I had a solution I was happy with. I boiled it down to a few specific techniques that can be reused, so I think they are worth sharing. You can download the source code for this article here . Background Let’s say you have a business object (say Employee) with a boolean property...