Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1235
How to avoid PromptForLocalTimeZone (at least after the first time)...
posted

Hello,
although I found the guidelines (and apparently applied them correctly) I don't succeed to avoid the prompt fot local time zone in my Silverlight project.

 I tried this:

private CustomTimeZoneInfoProvider tzip = new CustomTimeZoneInfoProvider();

public AgendaViewModel()
{

tzip.LocalTimeZoneId = "W. Europe Standard Time";
dataConnector.TimeZoneInfoProvider = tzip;
}

I tried also:

public AgendaViewModel()
{
dataConnector.TimeZoneInfoProviderResolved.LocalTimeZoneId = "W. Europe Standard Time";
}

Paradoxically, if I succeed in setting this value, the XamOutlookCalendarView kind of disappear (meaning I don't see anymore the appointments in it).

The only way I know of making it work is to enter that value every time I start the app.

I guess I'm missing something, can someone point that out?
Thanks 

Roberto

Parents
No Data
Reply
  • 22015
    Verified Answer
    posted

    Hello Roberto,

     I have been investigating your issue. After the investigation I have created a small sample for you, named “PromptForLocalTimeZoneMessage”. In the sample I have an ObservableCollection of all TimeZoneTokens and then use their ID to set the LocalTimeZoneId. Please find the attached sample and feel free to let me know if you require any further  assistance on the matter.

    PromptForLocalTimeZoneMessage.zip
Children