Click here to Skip to main content
16,021,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
public async Task<ObservableCollection<Category>> Load()
       {
           _n++;
           var categories = await NewsLoader.LoadNewsAsync();
           return categories;
       }


protected async override void OnNavigatedTo(NavigationEventArgs e)
      {
          var x = App.categoryList;
          var category = await Load();
      }


Can i write
XML
DataContext="{Binding category}"

If I Can't how will i make this? Is it possible?
Posted
Comments
[no name] 4-Aug-14 10:32am    
You databind to properties not to methods.
Sergey Alexandrovich Kryukov 4-Aug-14 13:24pm    
What is the goal of your binding, exactly?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900