Click here to Skip to main content
15,914,905 members
Home / Discussions / C#
   

C#

 
QuestionRe: Finding Path Pin
Rajesh R Subramanian25-Sep-08 1:08
professionalRajesh R Subramanian25-Sep-08 1:08 
AnswerRe: Finding Path Pin
sirisha guttikonda25-Sep-08 1:10
sirisha guttikonda25-Sep-08 1:10 
GeneralRe: Finding Path Pin
Rajesh R Subramanian25-Sep-08 1:14
professionalRajesh R Subramanian25-Sep-08 1:14 
GeneralRe: Finding Path Pin
sirisha guttikonda25-Sep-08 1:18
sirisha guttikonda25-Sep-08 1:18 
GeneralRe: Finding Path Pin
Rajesh R Subramanian25-Sep-08 1:53
professionalRajesh R Subramanian25-Sep-08 1:53 
GeneralRe: Finding Path Pin
sirisha guttikonda25-Sep-08 2:01
sirisha guttikonda25-Sep-08 2:01 
GeneralRe: Finding Path Pin
Rajesh R Subramanian25-Sep-08 2:07
professionalRajesh R Subramanian25-Sep-08 2:07 
QuestionWPF designer problem (MarkupExtension ctor confuse the VS2008SP1 designer) Pin
Super Lloyd25-Sep-08 0:57
Super Lloyd25-Sep-08 0:57 
I have a simple experimental WPF application which works fine.
However the designer is broken.

I'm working on a MarkupExtension which takes 2 parameter, here is the faulty XAML snippet:

<TextBlock
  Text="{Binding}"
  Background="{Binding
                   Converter={local:Script
                                    'if(value%2==0) Brushes.Red; else Brushes.Green;', {x:Type Brushes}}}"/>


And I got this error message in the designer: "Problem Loading ........ <<Button: Reload the designer>>"

If I click on the button it fails and I got this error message in the error list:
Error 1 No constructor for type 'ScriptExtension' has 2 parameters. C:\Dev\Tests\ExpressionConverter\ExpressionConverter\Window1.xaml 13 43 ExpressionConverter


But problem is, my has extension has all the required parameters!!!
here is a snippet of its C# code...

public class ScriptExtension : MarkupExtension
{
   public ScriptExtension(string code) { Init(code); }
   public ScriptExtension(string code, Type t0) { Init(code, t0); }
   public ScriptExtension(string code, Type t0, Type t1) { Init(code, t0, t1); }
   public ScriptExtension(string code, Type t0, Type t1, Type t2) { Init(code, t0, t1, t2); }
   public ScriptExtension(string code, Type t0, Type t1, Type t2, Type t3) { Init(code, t0, t1, t2, t3); }
   public ScriptExtension(string code, Type t0, Type t1, Type t2, Type t3, Type t4) { Init(code, t0, t1, t2, t3, t4); }

   void Init(string code, params Type[] types)
   {
       ......
    }
    .....
}


Any tip / work around (to re-enable the designer) please?!?

A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.

Questionhow to debug through through external dlls Pin
aiswaryasekhar25-Sep-08 0:50
aiswaryasekhar25-Sep-08 0:50 
AnswerRe: how to debug through through external dlls Pin
leppie25-Sep-08 1:08
leppie25-Sep-08 1:08 
GeneralRe: how to debug through through external dlls Pin
aiswaryasekhar25-Sep-08 18:46
aiswaryasekhar25-Sep-08 18:46 
Questionproblem in code Pin
NiloofarNoroozi25-Sep-08 0:35
NiloofarNoroozi25-Sep-08 0:35 
AnswerRe: problem in code Pin
DaveyM6925-Sep-08 0:41
professionalDaveyM6925-Sep-08 0:41 
GeneralRe: problem in code Pin
Harvey Saayman25-Sep-08 0:47
Harvey Saayman25-Sep-08 0:47 
JokeRe: problem in code Pin
DaveyM6925-Sep-08 1:29
professionalDaveyM6925-Sep-08 1:29 
AnswerRe: problem in code Pin
Harvey Saayman25-Sep-08 0:45
Harvey Saayman25-Sep-08 0:45 
GeneralRe: problem in code Pin
leppie25-Sep-08 1:18
leppie25-Sep-08 1:18 
GeneralRe: problem in code Pin
Harvey Saayman25-Sep-08 2:24
Harvey Saayman25-Sep-08 2:24 
AnswerRe: problem in code Pin
nelsonpaixao25-Sep-08 13:03
nelsonpaixao25-Sep-08 13:03 
QuestionProblem in passing '&' symbol Pin
Krishna Varadharajan25-Sep-08 0:21
Krishna Varadharajan25-Sep-08 0:21 
AnswerRe: Problem in passing '&' symbol [modified] Pin
Simon P Stevens25-Sep-08 0:25
Simon P Stevens25-Sep-08 0:25 
GeneralRe: Problem in passing '&' symbol Pin
Krishna Varadharajan25-Sep-08 0:29
Krishna Varadharajan25-Sep-08 0:29 
GeneralRe: Problem in passing '&' symbol Pin
Simon P Stevens25-Sep-08 0:32
Simon P Stevens25-Sep-08 0:32 
AnswerRe: Problem in passing '&' symbol Pin
Harvey Saayman25-Sep-08 0:36
Harvey Saayman25-Sep-08 0:36 
AnswerRe: Problem in passing '&' symbol Pin
Guffa25-Sep-08 4:39
Guffa25-Sep-08 4:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.