Exemplo n.º 1
0
        public static AsyncObservableCollection <DataStoreItemViewModel> CreateCollection()
        {
            AsyncObservableCollection <DataStoreItemViewModel> res = new AsyncObservableCollection <DataStoreItemViewModel>();

            res = (AsyncObservableCollection <DataStoreItemViewModel>)Dispatcher.Invoke(new Func <AsyncObservableCollection <DataStoreItemViewModel> >(() =>
            {
                AsyncObservableCollection <DataStoreItemViewModel> result;
                logger.Trace("Invoke...");
                result = new AsyncObservableCollection <DataStoreItemViewModel>();
                logger.Trace("Created Collection - type = " + result.GetType());
                logger.Trace("Invoke...End");
                return(result);
            }));

            return(res);
        }