J
Jules Winfield
Hello.
I frequently need to create private dependency properties to facilitate data
binding. For example, I recently bound the "IsEnabled" property of the OK
button to a private Boolean property indicating whether or not a login is
currently in process. So, time after time, I'm writing code like this:
private static readonly DependencyProperty IsLoginInProgProperty =
DependencyProperty.Register("IsLoginInProg",typeof(bool),typeof(LoginPopup));
private bool IsLoginInProg{
get{return (bool)GetValue(IsLoginInProgProperty);}
set{SetValue(IsLoginInProgProperty,value);}
}
Does Visual Studio 2008 provide any facility for automatically generating
this type of code? In the case above, for example, I could simply specify
that I want a bool-typed dependency property called "IsLoginInProg" and the
necessary code would be inserted into my class.
Is this type of feature currently available?
Thanks,
Jules
I frequently need to create private dependency properties to facilitate data
binding. For example, I recently bound the "IsEnabled" property of the OK
button to a private Boolean property indicating whether or not a login is
currently in process. So, time after time, I'm writing code like this:
private static readonly DependencyProperty IsLoginInProgProperty =
DependencyProperty.Register("IsLoginInProg",typeof(bool),typeof(LoginPopup));
private bool IsLoginInProg{
get{return (bool)GetValue(IsLoginInProgProperty);}
set{SetValue(IsLoginInProgProperty,value);}
}
Does Visual Studio 2008 provide any facility for automatically generating
this type of code? In the case above, for example, I could simply specify
that I want a bool-typed dependency property called "IsLoginInProg" and the
necessary code would be inserted into my class.
Is this type of feature currently available?
Thanks,
Jules