This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I test my code below with the 20130325 nightly build.
However, once I click a date, so the SelectedDateChanged is fired, I got the UnauthorizedAccessException error below. System.UnauthorizedAccessException was unhandled by user code HResult=-2147024891 Message=Access is denied. (Exception from HRESULT: 0x80070005 (EACCESSDENIED)) Source=Windows.UI StackTrace: at Windows.UI.Popups.MessageDialog.ShowAsync() at MindscapeCalendar.MainPage.calendarSelectedDateChanged(Object sender, EventArgs e) I tried to wrap the dialog.ShowAsync with Dispatcher.RunAsync(), but it didn't help either. Do you have any idea? Thanks, Karlkim |
|
|
Hello Kimsk This exception is caused when trying to open a MessageDialog when another MessageDialog is already being displayed. There was a bug in the CalendarControl that caused the SelectedDateChanged event to be raised twice for a single date change - hence your code tried to display 2 MessageDialogs. This bug has been resolved and the fix is available in the current nightly build. You can download the latest nightly build from your account page: http://www.mindscapehq.com/store/myaccount Thanks for bringing this to our attention. Jason Fauchelle |
|
|
Thanks. I just tried the nightly build, and it works great now! |
|