Thanks Xal!
This gave me the idea to post my macro for creating properties too:
http://forums.lhotka.net/forums/4185/ShowThread.aspx#4185
Here is a C# template that does the same thing. This also should be named bp?Type?
private «Link(«?Get(Type)»)» «Link(PropertyName,FormatFieldName,PropertyNameFromField)»;
public «Link(«?Get(Type)»)» «BlockAnchor»«Link(PropertyName)»«Cursor»
{
get
{
CanReadProperty("«Link(PropertyName)»", True);
return «Link(PropertyName,FormatFieldName,PropertyNameFromField)»;
}
set
{
CanWriteProperty("«Link(PropertyName)»", True);
if («Link(PropertyName,FormatFieldName,PropertyNameFromField)» != value)
{
«Link(PropertyName,FormatFieldName,PropertyNameFromField)» = value;
PropertyHasChanged("«Link(PropertyName)»");
}
}
}
Copyright (c) Marimer LLC