Share via


Host A Simple Avalon Control in a Windows Form

That sample is on the web (6/3/2005) or in the WinFX SDK Help. I've downloded the internal vesrsion but still needed some changes. The first was to Page1.xaml.cs:

 

#region yvesdolc - Added default constructor to add the resource manager for MyControls.dll (not loaded yet!)
public Page1()
{
   Application.RegisterComponent("MyControls");
}
#endregion

 

and the second to Page1.xml:

<Style x:Key="inlineText" TargetType="{x:Type TextBlock}">

 

I hope this helps.