Пример #1
0
        //Create UC
        private TweetStatsUC CreateTweetStatsUC(TweetStatsData tsd)
        {
            TweetStatsUC newUC = null;

            //Needed to get into STA context.
            Action action = delegate()
            {
                newUC = new TweetStatsUC(tsd);
            };

            Application.Current.Dispatcher.Invoke(DispatcherPriority.Send, action);

            return newUC;
        }
Пример #2
0
        public TweetStatsUC(TweetStatsData tsd)
        {
            InitializeComponent();

            ucListbox.ItemsSource = tsd.tweetStatsData;
        }
Пример #3
0
 public TweetStats()
 {
     tsd = new TweetStatsData();
 }