Thread is closed for posting
2 posts, 0 answers
  1. Efthymios
    Efthymios avatar
    17 posts
    Member since:
    Apr 2012

    Posted 27 Sep 2013 Link to this post

    I am using extensively the RadWindow and RadModalWindow in my application but I am having quite a lot of problems which I can not solve. One of them is when pressing the 'back' button of the device while the window is opening (in the transition state). At that point, instead of the window getting the BackKeyPress, the keypress is being forwarded in the page resulting either in the exit from that page or in some cases the application bar gets totally hidden.
    as it seems to be the same error.

    Also, I am having constantly the same bellow error:
    [ExceptionMessage]:[Value does not fall within the expected range.]
       at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
       at MS.Internal.XcpImports.Collection_AddValue[T](PresentationFrameworkCollection`1 collection, CValue value)
       at MS.Internal.XcpImports.Collection_AddDependencyObject[T](PresentationFrameworkCollection`1 collection, DependencyObject value)
       at System.Windows.PresentationFrameworkCollection`1.AddDependencyObject(DependencyObject value)
       at System.Windows.Controls.UIElementCollection.AddInternal(UIElement value)
       at System.Windows.PresentationFrameworkCollection`1.Add(T value)
       at Telerik.Windows.Controls.RadWindow.AddCanvas(Panel parent)
       at Telerik.Windows.Controls.RadModalWindow.AddCanvas(Panel parent)
       at Telerik.Windows.Controls.RadWindow.OpenCore(Panel ancestor)
       at Telerik.Windows.Controls.RadWindow.Open()
       at Telerik.Windows.Controls.RadWindow.SyncOpenState()
       at Telerik.Windows.Controls.RadWindow.OnIsOpenChanged(Boolean newValue, Boolean oldValue)
       at Telerik.Windows.Controls.RadWindow.OnIsOpenChanged(Object sender, DependencyPropertyChangedEventArgs args)
       at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
       at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
       at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
       at Telerik.Windows.Controls.RadWindow.set_IsOpen(Boolean value)
       at Pedometer.WizardDialog.DisplayDismissDialog()
       at Pedometer.WizardHelper.wizardWindow_WindowClosed(Object sender, WindowClosedEventArgs e)
       at Telerik.Windows.Controls.RadWindow.OnWindowClosed(WindowCloseReason reason)
       at Telerik.Windows.Controls.RadWindow.Close(WindowCloseReason reason)
       at Telerik.Windows.Controls.RadWindow.PageBackKeyPress(Object sender, CancelEventArgs e)
       at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
       at Microsoft.Phone.Controls.PhoneApplicationPage.Microsoft.Phone.Controls.IPhoneApplicationPage.InternalOnBackKeyPress(CancelEventArgs e)
       at System.Windows.Navigation.Journal.SystemKeyPressed(NavigationSystemKey systemKeyType)
       at Microsoft.Phone.TaskModel.Interop.Task.FireOnSystemKeyPressed(Int32 systemKeyType)]

    That message is coming when I am trying to display a new dynamically coded RadWindow from inside the windowClosed event handler of an other RadWindow. 
    Could someone please help me? This is a huge nightmare for me as I am still struggling with this problem for a long time.

    The version of the controls being used in the project are: 2013.3.905.2040 and 2013.3.905.3040 respectively.

    Thank you very much.

    Efthymios Kalyviotis
  2. Deyan
    Deyan avatar
    2147 posts

    Posted 01 Oct 2013 Link to this post

    Hi Efthymios,

    Thanks for writing.

    1. With the current version of RadWindow if you press the back key while the window is being opened (the open animation is playing) the animation will stop and the page itself will handle the back key press. That said, you will navigate to the previous page. The issue with the disappearing Application Bar is fixed according to the thread you are pointing. Since it might be so that you've discovered a similar issue, we want to take a look at your project and see if there's something we need to address.

    2. Please note that RadWindow is a component that uses a lot of static elements and opening multiple windows when other windows are being processed might lead to undesired effects. To be able to determine why you get this exception, we will need to reproduce it on our side using your exact scenario. Is it possible to isolate the case in a sample project or simply send is a ZIP with your working project and instructions on how to reproduce the case so that we can take a look?

    You will have to open a new support ticket to be able to attach files.

    Thanks for your time.

    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top