Click here to Skip to main content
15,908,842 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Sir/Madam

I have created a C# project with couple of winForms. I also have couple of winForm UserControls. In this project I also added a WPF UserControl.

Now my question is...

How can I call this WPF UserControl from Form1 and display-it into the Form1.

(I allready know how to call the winForm UserControl from Form1 like this)

C#
FastBarUserControl fabaUC = new FastBarUserControl();
            this.fabaUC.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.fabaUC.Location = new System.Drawing.Point(0, 0);
            this.fabaUC.Size = new System.Drawing.Size(700, 560);
            this.fabaUC.Enabled = true;
            this.fabaUC.Visible = true;
            this.FastBarPanel.Controls.Add(fabaUC);



Any help on how to call WPF UserControl from Form1 would be very gratefull.


Thanks in Advance


LAPECI
Posted
Updated 25-Nov-10 11:42am
v3

1 solution

Have a read of this[^] article.
 
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