.977 .NET
Hello,
the following code works in C#:
using System; using System.Windows.Controls; using Telerik.Windows.Controls; namespace RadControlsSilverlightApp1 { public partial class MainPage : UserControl { public MainPage() { InitializeComponent(); Object obj = null; var a = (RadPaneGroup) obj; } } }
But the same code in Oxygene does not compile:
namespace SilverlightApplication1; interface uses System.Windows.Controls, Telerik.Windows.Controls; type MainPage = public partial class(UserControl) private public constructor; end; implementation constructor MainPage; begin InitializeComponent(); var Obj : Object := nil; var a := RadPaneGroup (Obj); end; end.
error E129: Cannot cast from “System.Object” to “Telerik.Windows.Controls.RadPaneGroup”
The project is a Silverlight application that is using Telerik’s RadControls for Silverlight.
Patrick