|
-
Oct 25th, 2006, 11:42 PM
#1
[2005] Design Time "Validation"
Using <System.Obsolete("Warning Message", false)> you can deprecate controls. My situation is similiar, but a little different. I have values being assigned to y custom object's properties that I would like to validate with RegEx.
I.E.
They pass "Cheesetype=cheddar;Cracker=wheatthin" to a style property during design (as a constant expression); I would like to be able to use similiar design-time functionality to say (based on regex), use the object's property "Cheesetype" instead of inline attributes as a warning.
Any ideas or a direction?
-
Oct 25th, 2006, 11:54 PM
#2
Re: [2005] Design Time "Validation"
To clarify, I have the regex I need and know how to use <system.componentmodel.attributeusage(...> to limit the input to a constant expression; I just am lost on applying the regex to the constant expression to the design time IDE.
Many thanks.
-
Oct 26th, 2006, 08:45 PM
#3
Re: [2005] Design Time "Validation"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|