Brian Schroer
Don't Call Me Mort!
Site Sections
Home
Contact
Syndication
Login
Posts
114
Comments
126
Trackbacks
10
INotifyPropertyChanged
There are 3 entries for the tag
INotifyPropertyChanged
INotifyPropertyChanged with less code using Expressions
Technorati Tags: .NET,INotifyPropertyChanged... Parts 1 & 2 of this unintended trilogy: INotifyPropertyChanged with less typing using a Code Snippet INotifyPropertyChanged with less code using generics & reflection My previous post elicited a couple of good comments. Matt noted that my use of reflection to get the property name could be a problem in due to inlining in Release mode: http://stackoverflow.com/qu... http://www.hanselman.com/bl... ......
Share This Post:
Short Url:
http://wblo.gs/aio
Posted On
Monday, August 2, 2010 8:17 PM
|
Comments (2)
INotifyPropertyChanged with less code using generics & reflection
Technorati Tags: .NET,INotifyPropertyChanged... In my last post, I talked about using a Visual Studio code snippet for properties in classes implementing INotifyPropertyChanged: The code snippet lets me create the properties faster, but it's still a lot of repetitive "setter" code for each. What if I moved the "has the value changed?" and backing field update logic out of the property setters and replace my NotifyPropertyChanged method with this CheckForPropertyChange method?: protected bool CheckForPropertyChange<T... ......
Share This Post:
Short Url:
http://wblo.gs/aha
Posted On
Tuesday, July 27, 2010 8:44 AM
|
Comments (4)
INotifyPropertyChanged with less typing using a Code Snippet
Technorati Tags: .NET,INotifyPropertyChanged... Kevin Grossnicklaus gave a nice presentation on M-V-VM User Interface Patterns in Silverlight and WPF at last night's St. Louis .NET User Group meeting. A key part of MVVM is implementation of the INotifyPropertyChanged interface to let views know that bound properties have changed. Here's a simplified version of a model class from the MSDN INotifyPropertyChanged documentation: public class DemoCustomer : INotifyPropertyChanged { private Guid _id ......
Share This Post:
Short Url:
http://wblo.gs/ahZ
Posted On
Tuesday, July 27, 2010 7:48 AM
|
Comments (3)
Archives
August 2012 (1)
July 2012 (2)
June 2012 (1)
April 2011 (1)
February 2011 (1)
January 2011 (1)
December 2010 (2)
November 2010 (6)
October 2010 (4)
September 2010 (3)
August 2010 (6)
July 2010 (17)
June 2010 (20)
May 2010 (2)
January 2010 (1)
December 2009 (3)
October 2009 (5)
September 2009 (8)
June 2008 (3)
May 2008 (3)
March 2008 (1)
December 2007 (1)
November 2007 (1)
August 2007 (1)
July 2007 (3)
March 2007 (1)
October 2006 (4)
September 2006 (1)
June 2006 (1)
April 2006 (1)
March 2006 (1)
February 2006 (8)
Post Categories
.NET
freetools
PowerShell
Tech·Ed
JavaScript
Sandcastle
jQuery
ASP.NET
ASP.NET MVC
community
MvcContrib
localization
Unity IOC
St. Louis
CSS
T4MVC
WatiN
testing
Windows Phone 7
Sliverlight
Virtual Brown Bag
Visual Studio
Links
My del.icio.us .NET links
My del.icio.us C# links
Twitter
Twitter
BrianSchroer
So it's "floppy bat" day at Busch Stadium, eh?
#stlcards
about 9 days ago
BrianSchroer
MN Rep. Pastor Tim Faust on marriage equality: "... the right to impose our religious beliefs on somebody else?"
http://t.co/SECqAoBmt7
about 10 days ago
BrianSchroer
Mad Men will end with someone throwing Don Draper off the roof of a building for inventing the word "sale-a-bration".
about 13 days ago
BrianSchroer
The woman introducing the
#resharper
webcast said "refraktoring". Must be a Battlestar Galactica fan
about 13 days ago
BrianSchroer
Invited to a post-project "Lesson's Learned" meeting. Lesson 1: Don't use apostrophes for plurals.
about 13 days ago
BrianSchroer
Happy Sink o' de Mayo
http://t.co/tnaJNo3yu4
about 16 days ago
BrianSchroer
I haven't seen the guys in the striped shirts murder the Blues like this since "Jailhouse Rock".
#stlblues
about 16 days ago
BrianSchroer
Why is it called "Mid Rivers Mall"? Mid-river would be a terrible place to build a mall.
about 16 days ago
BrianSchroer
@mulbud
Thanks, Mul. Always good to see you.
about 16 days ago
BrianSchroer
if (presenter.ShowOfHandsRequests.Count() <= 3) { me.RaiseHand(); } else { me.SayScrewIt(); }
#KCDC2013
about 17 days ago
Tag Cloud
.net
ASP.NET
ASP.NET MVC
C#
conferences
CSS
diabetes
freetools
INotifyPropertyChanged
JavaScript
jQuery
Kansas City
localization
MvcContrib
MVVM
Sandcastle
Scott Hanselman
Silverlight
testing
Windows Phone 7
Copyright © 2005 Brian Schroer
This work is licensed under a
Creative Commons License