Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a project that created by expression blend 3 (wpf) and wanna add this projetc to a
C# win_app_form project (my strat up project ),but when I give an instance of it (wpf project ) ,error occurs.
what should I do ? in generally can we use a wpf(blend 3) project in visual studio as a reference?!
In my win form I have a button for example like this
private void button1_Click(object sender, EventArgs e)
        {
            wpfapp.App wpfinstance = new wpfapp.App(); //is it true?
             wpfinstance.     //what should i write here , it has only InitializeComponent property that gives error .

        }


how can I instance new wpf_window in my win_form(visual studio) and show it??!:confused:

Please tell me exactly what I must do,I;m a beginner !! :sigh:
Posted
Updated 25-Feb-10 4:13am
v5

You could try telling us what the error is. Is this a winforms app ? I believe there's a control that can host WPF in a winforms app.

Not sure why I should help you when you 1 voted me, but, no, I don;t think it is. I think you need to create a winforms form, and host WPF controls in it. Either way, you seen to be trying to instantiate the app, not a window in it, which surely won't work.
 
Share this answer
 
v2
AFAIK, Expression blend only works for WPF and Silverlight.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900