This is a migrated thread and some comments may be shown as answers.

DatePicker NullRefferenceException

1 Answer 44 Views
Animation
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Doug
Top achievements
Rank 1
Doug asked on 13 Dec 2012, 01:46 PM
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

1 Answer, 1 is accepted

Sort by
0
Doug
Top achievements
Rank 1
answered on 13 Dec 2012, 03:47 PM
Okay, problem solved, I changed the toolkit datepicker to telerik datepicker and now it is working
Tags
Animation
Asked by
Doug
Top achievements
Rank 1
Answers by
Doug
Top achievements
Rank 1
Share this question
or