Validation error symbol

Hello,
when I drop an IfElseActivity into the custom designer (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnlong/html/WFDsgnRehst.asp) I don't see the validation error symbol as it is shown into VS. How can I show it ?

Thanks,
Pierre

[487 byte] By [pierreg] at [2007-12-21]
# 1

You can just set this somewhere in your code (before you create the view)

WorkflowTheme.CurrentTheme.AmbientTheme.ShowConfigErrors = true;

JonFlanders at 2007-9-10 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 2

When I do that I get an exception: "Theme properties can only be changed in the Theme Configuration Dialog."

Thanks,
Pierre

pierreg at 2007-9-10 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 3
I've got it in the constructor of my viewhost and it works fine. Where are you putting it?
JonFlanders at 2007-9-10 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 4
Consider the MSDN sample, into the WorkflowDesignerControl constructor.

Thanks,
Pierre

pierreg at 2007-9-10 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 5

I got the problem. I set readonly to the theme before your line of code.

Thanks,
Pierre

pierreg at 2007-9-10 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 6
I get the error symbol but no feedback when it is selected.
(e.g. for an IfElse with no condition set.)
Blipwort at 2007-9-10 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...

Software Development for Windows Vista

Site Classified