A type cast with Telerik RadPaneGroup is not possible

.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

Hello Patrick,

Thank you for the report. The issue is logged for further review (#53824).

Hello,
corrected in .995
Patrick