I have a static method that determines what window is to be called next, but I seem to have no way to navigate to a new window. NavigationService.navigate can only be called from a non-ui thread and the dispatcher doesn't seem to be able to be stored statically and Application.Current.Dispatcher doesn't seem to exist at all in silverlight. If anybody has any tips I would be very grateful.
Edit: Found a way to store the dispatcher don't know why visual studio wouldn't let me before
也许您正在寻找可从任何地方使用的Deployment.Current.Dispatcher
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.