I am new to Silverlight, but have used WPF for quite a few application. I am now trying to migrate my first system from WPF to Silverlight. I am creating a Silverlight 5 application in C# using VS2010.
I have created a very simple Silverlight Application, currently there is nothing defined except a RadTabControl. I am trying to add a RadChart and I get this exception when I add it from the ToolBox:
Error Dialog
[Line:0 Position:0]
"Object reference not set to an instance of an object"
I can successfully add RadButton, RadPieChart, RadCube, ( I tried about 10 random Rad controls to see if any others would fail and none of the others failed.)
Telerik Installations:
RadControls for Silverlight Q2 2012 SP2
RadControls for Winforms Q2 2012 SP2
RadControls for WPF Q2 2012 SP2
Silverlight Installations:
Silverlight
Silverlight 3 SDK
Silverlight 4 SDK
Silverlight 5 SDK
Development
Visual Studio 2010 Ultimate
Visual Studio Web Authoring
Here is my XAML:
<UserControl x:Class="SilverlightApplication1.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" d:DesignHeight="558" d:DesignWidth="797">
<Grid x:Name="LayoutRoot" Background="White">
<telerik:RadTabControl HorizontalAlignment="Stretch" Margin="306,12,12,259" Name="radTabControl1" VerticalAlignment="Stretch">
<telerik:RadTabItem Header="Main" Height="50" HorizontalAlignment="Left" Name="MainTabItem" VerticalAlignment="Top" Width="100">
<telerik:RadButton Content="Button" Height="32" HorizontalAlignment="Left" Margin="209,168,0,0" Name="radButton1" VerticalAlignment="Top" Width="68" />
</telerik:RadTabItem>
<telerik:RadTabItem Header="Risks" Height="50" HorizontalAlignment="Left" Name="RiskTabItem" VerticalAlignment="Top" Width="100">
</telerik:RadTabItem>
<telerik:RadTabItem Header="Changes" Height="50" HorizontalAlignment="Left" Name="ChangeTabItem" VerticalAlignment="Top" Width="100">
</telerik:RadTabItem>
</telerik:RadTabControl>
</Grid>
</UserControl>
Thanks for your help,
Bill
I have created a very simple Silverlight Application, currently there is nothing defined except a RadTabControl. I am trying to add a RadChart and I get this exception when I add it from the ToolBox:
Error Dialog
[Line:0 Position:0]
"Object reference not set to an instance of an object"
I can successfully add RadButton, RadPieChart, RadCube, ( I tried about 10 random Rad controls to see if any others would fail and none of the others failed.)
Telerik Installations:
RadControls for Silverlight Q2 2012 SP2
RadControls for Winforms Q2 2012 SP2
RadControls for WPF Q2 2012 SP2
Silverlight Installations:
Silverlight
Silverlight 3 SDK
Silverlight 4 SDK
Silverlight 5 SDK
Development
Visual Studio 2010 Ultimate
Visual Studio Web Authoring
Here is my XAML:
<UserControl x:Class="SilverlightApplication1.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" d:DesignHeight="558" d:DesignWidth="797">
<Grid x:Name="LayoutRoot" Background="White">
<telerik:RadTabControl HorizontalAlignment="Stretch" Margin="306,12,12,259" Name="radTabControl1" VerticalAlignment="Stretch">
<telerik:RadTabItem Header="Main" Height="50" HorizontalAlignment="Left" Name="MainTabItem" VerticalAlignment="Top" Width="100">
<telerik:RadButton Content="Button" Height="32" HorizontalAlignment="Left" Margin="209,168,0,0" Name="radButton1" VerticalAlignment="Top" Width="68" />
</telerik:RadTabItem>
<telerik:RadTabItem Header="Risks" Height="50" HorizontalAlignment="Left" Name="RiskTabItem" VerticalAlignment="Top" Width="100">
</telerik:RadTabItem>
<telerik:RadTabItem Header="Changes" Height="50" HorizontalAlignment="Left" Name="ChangeTabItem" VerticalAlignment="Top" Width="100">
</telerik:RadTabItem>
</telerik:RadTabControl>
</Grid>
</UserControl>
Bill