Hello,
I'm running internal build 2010.1.326.35. When i host the RadDocking control inside of a windows form using a ElementHost I'm getting "Object reference not set to an instance of an object."
sample code.
usercontrol code
any suggestions for a workaround would be great. we have a conference coming up next week to demonstrate our product and this control is in all of our WPF maintenance screens.
Thanks much
~Boots
I'm running internal build 2010.1.326.35. When i host the RadDocking control inside of a windows form using a ElementHost I'm getting "Object reference not set to an instance of an object."
sample code.
using System; |
using System.Collections.Generic; |
using System.ComponentModel; |
using System.Data; |
using System.Drawing; |
using System.Linq; |
using System.Text; |
using System.Windows.Forms; |
namespace WindowsFormsApplication1 |
{ |
public partial class Form1 : Form |
{ |
public Form1() |
{ |
try |
{ |
InitializeComponent(); |
this.elementHost1.Child = new UserControl1(); |
} |
catch (Exception ex) |
{ |
MessageBox.Show(ex.ToString()); |
} |
} |
} |
} |
usercontrol code
<UserControl x:Class="WindowsFormsApplication1.UserControl1" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
xmlns:radDock="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"> |
<Grid> |
<radDock:RadDocking /> |
</Grid> |
</UserControl> |
using System; |
using System.Collections.Generic; |
using System.Linq; |
using System.Text; |
using System.Windows; |
using System.Windows.Controls; |
using System.Windows.Data; |
using System.Windows.Documents; |
using System.Windows.Input; |
using System.Windows.Media; |
using System.Windows.Media.Imaging; |
using System.Windows.Navigation; |
using System.Windows.Shapes; |
namespace WindowsFormsApplication1 |
{ |
/// <summary> |
/// Interaction logic for UserControl1.xaml |
/// </summary> |
public partial class UserControl1 : UserControl |
{ |
public UserControl1() |
{ |
InitializeComponent(); |
} |
} |
} |
any suggestions for a workaround would be great. we have a conference coming up next week to demonstrate our product and this control is in all of our WPF maintenance screens.
Thanks much
~Boots