Cannot Display the Control

9 posts, 1 answers
  1. Dimitris Konstantinos
    Dimitris Konstantinos avatar
    9 posts
    Member since:
    Sep 2010

    Posted 09 Nov 2010 Link to this post

    Hi ,
    I'm using SL 4 and VS2010. When I drag n drop from my toolbar the RadBusyindicator control I cannot see the Circle inside the control moving. Therefore when I run my app the control is displayed with just the gray background without the circle spinning inside.
    And when I run my App after loading the designer I get an error Saying "An unhandled Exception has  occured". If I delete the control everything is back to normal. I can display my page ,the designer etc.
    Any ideas ?

    thank you
  2. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 11 Nov 2010 Link to this post

    Hello Dimitris Konstantinos,

    In order to see the RadBusyIndicator spinner in the design surface you need to set it's from its properties
    IsBusy =True.

    About the error, could you provide some more info about it. I am not able to reproduce such crash.

    Kind regards,
    Boyan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Dimitris Konstantinos
    Dimitris Konstantinos avatar
    9 posts
    Member since:
    Sep 2010

    Posted 12 Nov 2010 Link to this post

    Hi and thank you for your answer. Isbusy = true do the trick
    The error I'm getting in the designer :  (When I run my app is working OK but I have lost with this way the designer).

    System.Reflection.TargetInvocationException
    Exception has been thrown by the target of an invocation.
       at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Delegate.DynamicInvokeImpl(Object[] args)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

     
    System.InvalidOperationException
    An unhandled exception was encountered while trying to render the current silverlight project on the design surface. To diagnose this failure, please try to run the project in a regular browser using the silverlight developer runtime.
       at Microsoft.Windows.Design.Platform.SilverlightViewProducer.OnUnhandledException(Object sender, ViewUnhandledExceptionEventArgs e)
       at Microsoft.Windows.Design.Platform.SilverlightViewProducer.SilverlightContentHost.MeasureOverride(Size availableSize)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at MS.Internal.Designer.ZoomableViewPresenter.DesignerBackground.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Decorator.MeasureOverride(Size constraint)
       at Microsoft.Windows.Design.Interaction.DesignerView.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at MS.Internal.Designer.Viewport.MeasureOverride(Size availableSize)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
       at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
       at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Control.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Interop.HwndSource.SetLayoutSize()
       at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
       at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
       at MS.Internal.DeferredHwndSource.ProcessQueue(Object sender, EventArgs e)

     
    System.Windows.Markup.XamlParseException
     [Line: 0 Position: 0]
       at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
       at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize)
       at System.Windows.FrameworkElement.MeasureOverride(Size availableSize)
       at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)

    thank you


  5. Answer
    Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 17 Nov 2010 Link to this post

    Hi Dimitris Konstantinos,

    We are not able to reproduce this error. What version of our controls you are using?  On my side I don't get error either in design surface or runtime. I have recorded a video what I am doing, please take a look at it an tell me if you are doing something different. In the video I have used latest Q3 release.

    All the best,
    Boyan
    the Telerik team
    See What's New in RadControls for Silverlight in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
  6. Dimitris Konstantinos
    Dimitris Konstantinos avatar
    9 posts
    Member since:
    Sep 2010

    Posted 18 Nov 2010 Link to this post

    Hi ,
    My VS recently updated the telerik contlors and this is not happening anymore.
    thank you
  7. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 27 Nov 2010 Link to this post

    Revisited.


    SL4,
    Telerik 2010.3.1110.1040

    I'm adding the RadBusyIndicator by C# code no xaml at all
    RadBusyIndicator rbi = new RadBusyIndicator();

    at the main application fields

    Now when I start a process I do rbi.IsBusy = true but nothing, absolutely nothing is shown on screen.
    Do I have to set RowSpan and ColSpan or anything else to show it ?
    Do I have to add it to the tree like this.LayoutRoot.Children.Add(rbi) as I di try this and my entire application was somehow white and not responsive with nothing else.  Like if I was seeing just the Overlay of the control

    Could you just write a few line here to show how this is done by C# code no xaml at all please
  8. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 29 Nov 2010 Link to this post

    Hello Marc Roussel,

    Yes you should add it to the LayoutRoot, however it was working fine at my side. Here is the code I tried:
    void MainPage_Loaded(object sender, RoutedEventArgs e)
    {
        RadBusyIndicator busy1 = new RadBusyIndicator();
        busy1.IsBusy = true;
        LayoutRoot.Children.Add(busy1);
    }
    It would be best if you could send me a sample project where the problem can be seen so we can reproduce and provide a solution.

    Sincerely yours,
    Boyan
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  9. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 29 Nov 2010 Link to this post

    Hi,

    The ticket #371485 was created with a Repro
  10. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 02 Dec 2010 Link to this post

    Hi Marc Roussel,

    I will paste the answer from the private thread so other users can see it as well.

     We were able to reproduce the issue. This was caused by the background of the RadBusyIndicator. We made the default background transparent which should fix your issue and this fix is included in the Latest Internal Build that was released yesterday. If you don't want to use internal build you can also set the control in XAML and then this issue will not appear.

    Regards,
    Boyan
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
Back to Top
DevCraft banner