How do I host an Avalon control on a Windows Form?

How we can place avalon controls in windows form application ?
[62 byte] By [shashankk] at [2007-12-16]
# 1
shashankk wrote:
How we can place avalon controls in windows form application ?
shashankk at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 2
shashankk wrote:
shashankk wrote:
How we can place avalon controls in windows form application ?
shashankk at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 3

Is avalon is freely available for programmers ?Idea

shashankk at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 4
Hi,

you can download it here:
http://www.microsoft.com/downloads/details.aspx?FamilyID=B789BC8D-4F25-4823-B6AA-C5EDF432D0C1&displaylang=en

with avalon you can place the controls on a form with a language that is called xaml. Looks like xml and it is cool. Try it out!!

rgerbig at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 5
How would one, if possible, use the Avalon API(XAML) with vb express on a winform?
-will
LeRoi at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 6
Hi ,

Thanks for information .

Can you give me more information about avalon ?
Do you have any sample examples on avalon ?

And how it will helpful for creating web applications in future ?

Regards

Shashank.

shashankk at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 7
This forum is for technical questions regarding the Windows Forms Sample applications, e.g. Terrarium. Moving this thread over to Windows Forms General.
durstin at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 9

Don't know why my post was moved here, but anyways, ive been to the links above before and have not found any info-on-adding Avalon controls to a WinForm in a VB application from Visual Basic 2005 Express!!!! I have only been able to find how to start an Avalon-Indigo application and work from there...which is not what I was looking for! I read that Avalon is to replace GDI/GDI+ so was querying whether or not:

LeRoi wrote:
How would one, if possible, use the Avalon API(XAML) with vb express on a winform?
-will

LeRoi at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 10
If you want to host an Avalon control inside of a WinForms application, then you will need to use the ElementHost control. There is currently do designer support for this scenario so you will have to add the ElementHost control and any Avalon controls programmatically to the form at runtime. A code snippet to do this would look something like:

using System.Windows.Forms.Integration;

private ElementHost avHost;

avHost = new ElementHost();
avHost.Dock = DockStyle.Fill;
System.Windows.Controls.TextBox avalonTextBox = new System.Windows.Controls.TextBox();
// Add the Avalon TextBox to the host control
avHost.AddChild(avalonTextBox);
// Add the host control to the form
this.Controls.Add(avHost);

For more information, you should refer to the WinFX SDK documentation. Specifically the section in "Avalon" that is entitled "Migration and Interop".

MikeHenderlight at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 11
Big Smile Thank you!
LeRoi at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 12
LeRoi wrote:
Big SmileThank you!
shashankk at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...