-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
I'm on WinRT and have created an app that is a share target
It seems like each time the app is opened as share target, it gets assigned a new UI dispatcher, while the AppDomain persists.
This is a problem, when creating the automatic DataTemplate at
| public static Lazy<DataTemplate> DefaultItemTemplate = new Lazy<DataTemplate>(() => { |
DataTemplate.
When the dispatcher then changes, and the template with the old dispatcher is assigned to a control that was created on the new UI thread, line
| itemsControl.ItemTemplate = DefaultItemTemplate.Value; |