DatePicker NullRefferenceException

2 posts, 0 answers
  1. Doug
    Doug avatar
    49 posts
    Member since:
    May 2012

    Posted 13 Dec 2012 Link to this post

    Hi

    When I enable animations for my application in the App.xaml.cs like so:

    RootFrame = new RadPhoneApplicationFrame { Transition = new RadContinuumAndSlideTransition() };

    I get a nullrefference exception when i click on a datetime picker:

    at Microsoft.Phone.Controls.DataSource.GetPrevious(Object relativeTo)
    at Microsoft.Phone.Controls.Primitives.LoopingSelector.Balance()
    at Microsoft.Phone.Controls.Primitives.LoopingSelector.UpdateData()
    at Microsoft.Phone.Controls.Primitives.LoopingSelector.OnSizeChanged(Object sender, SizeChangedEventArgs e)
    at System.Windows.FrameworkElement.OnSizeChanged(Object sender, SizeChangedEventArgs e)
    at MS.Internal.JoltHelper.RaiseEvent(IntPtr target, UInt32 eventId, IntPtr coreEventArgs, UInt32 eventArgsTypeIndex)


    As I saw on various websites, this is a known issue, but I didn't find a solution for this.

    Best Regards Doug
  2. Doug
    Doug avatar
    49 posts
    Member since:
    May 2012

    Posted 13 Dec 2012 Link to this post

    Okay, problem solved, I changed the toolkit datepicker to telerik datepicker and now it is working
  3. DevCraft banner
Back to Top