Windows Form User Control gets hosted in WPF control in Avalon DockingManager. Then that WPF control gets hosted in regular windows form.
Everything gets built OK.
During the run time exception being thrown in Program.cs "object reference not set to an instant of the object".
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1()); //<--exception is thrown here
}
}
Comments: ** Comment from web user: mach22 **
Everything gets built OK.
During the run time exception being thrown in Program.cs "object reference not set to an instant of the object".
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1()); //<--exception is thrown here
}
}
Comments: ** Comment from web user: mach22 **
In my sample application seem to work even the dock of a floating window like a normal wpf application, the only problem could be some issue due to the fact that this AvalonDock isn't design to work this way.
Could you be more precise about your problem, adding your application that has the problem?