locked
Close button for tab menu is not working in Lightswitch 2012 - Cosmoplitan shell and theme RRS feed

  • Question

  • Hi All,

    After opening more than 1 screen from menu. I have tried to close few screen (Other then default screen) It is not getting close and getting hang.

    Regards,

    Shaikh

    Friday, December 28, 2012 6:53 AM

Answers

  • Yann is correct , try to rebuild  then is should work fine. I used serveral Themes incl. Metro Theme.

    Eric

    • Proposed as answer by Eric.Luitjens Tuesday, January 1, 2013 12:31 AM
    • Marked as answer by Angie Xu Friday, January 4, 2013 5:23 AM
    Tuesday, January 1, 2013 12:30 AM

All replies

  • If you switch back to the Classic theme, does it work OK? Just trying to figure out if there's a bug in the Cosmopolitan theme, or if you have some code that might be causing the error.

    Yann - LightSwitch Central - Click here for FREE Themes, Controls, Types and Commands
     
    Please click "Mark as Answer" if a reply answers your question. Please click "Vote as Helpful" , if you find a reply helpful.
     
    By doing this you'll help others to find answers faster.

    Saturday, December 29, 2012 6:31 AM
    Moderator
  • Hi Yann,

    After switching to Classic theme and shell. I am getting below error message.

    Unhandled Error in Silverlight Application
    Code: 4004   
    Category: ManagedRuntimeError      
    Message: System.Exception: Error HRESULT E_FAIL has been returned from a call to a COM component.
       at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
       at MS.Internal.XcpImports.SetValue(IManagedPeerBase obj, DependencyProperty property, Boolean b)
       at System.Windows.DependencyObject.SetValue(DependencyProperty property, Boolean b)
       at Microsoft.LightSwitch.Runtime.Shell.Framework.ScreenChildWindow.CheckOwnerVisibility()
       at Microsoft.LightSwitch.Runtime.Shell.Framework.ScreenChildWindow.UpdateLayoutSizeAndLocation()
       at Microsoft.LightSwitch.Runtime.Shell.Framework.ScreenChildWindow.OpeningAnimation()
       at Microsoft.LightSwitch.Runtime.Shell.Framework.ScreenChildWindow.OnApplyTemplate()
       at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)    

    Regards,

    Shaikh

    Monday, December 31, 2012 5:07 AM
  • That's odd!

    Did you rebuild the project, after changing the shell/theme?

    What about if you close Visual Studio, then reopen the project?


    Yann - LightSwitch Central - Click here for FREE Themes, Controls, Types and Commands
     
    Please click "Mark as Answer" if a reply answers your question. Please click "Vote as Helpful" , if you find a reply helpful.
     
    By doing this you'll help others to find answers faster.

    Monday, December 31, 2012 8:11 AM
    Moderator
  • Yann is correct , try to rebuild  then is should work fine. I used serveral Themes incl. Metro Theme.

    Eric

    • Proposed as answer by Eric.Luitjens Tuesday, January 1, 2013 12:31 AM
    • Marked as answer by Angie Xu Friday, January 4, 2013 5:23 AM
    Tuesday, January 1, 2013 12:30 AM