public PluginSkeleton() { //Initialize Elements tsd = new PluginData(); }
//Creates UserControl asynchronously private UserControl CreatePluginSkeletonUC(PluginData tsd) { PluginSkeletonUC newUC = null; //Needed to get into STA context. Action action = delegate() { newUC = new PluginSkeletonUC(tsd); }; Application.Current.Dispatcher.Invoke(DispatcherPriority.Send, action); return newUC; }
public PluginSkeletonUC(PluginData tsd) { InitializeComponent(); ucListbox.ItemsSource = tsd.tweetsData; }