iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Adding something like this to your ViewModelBase:
public void RaisePropertyChanged<TProperty>(Expression<Func<TProperty>> property) { if (PropertyChanged == null) { return; } var lambda = (LambdaExpression)property; MemberExpression memberExpression; if (lambda.Body is UnaryExpression) { var unaryExpression = (UnaryExpression)lambda.Body; memberExpression = (MemberExpression)unaryExpression.Operand; } else memberExpression = (MemberExpression)lambda.Body; OnPropertyChanged(memberExpression.Member.Name); }
will allow for code like this in ViewModel class property setters:
RaisePropertyChanged( () => MyProperty);
The result is no more typos inside of string properties. Of course, if you've copying and pasting, you can still forget to change the property for the pasted one.
Bob,
Thank you for your sharing your information. I have forwarded your feedback to our development team, it will be included in the RTM version of our templates and samples.
One thing that I noted is that you used RaisePropertyChanged name instead of OnPropertyChanged. Althought just a minor naming issue, we suggest that OnPropertyChanged is used instead of RaisePropertyChanged since it's more consistent with WPF-style MVVM guidelines.
Let me know if you have any thoughts or other questions on ClientUI.
I've always thought it made more sense to call it RaisePropertyChanged, since I'm explicitly calling it in a setter, as opposed to reacting to an event with an On<event> method name. So, that's my convention, opinionated though it may be.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname