|
This is just great! Thank you for the hard work!
Based on the current code, I posted a "Getting Started" guide about the Caliburn.Micro for WinRT in here: http://mikaelkoskinen.net/post/caliburn-micro-winrt-getting-started.aspx
I just noticed that there seems to be support for async/await too? So I can write my method inside the view model like this:
public async Task SayHello()
{
var dlg = new MessageDialog("Hello from caliburn.micro!");
await dlg.ShowAsync();
}
And the View is automatically bound against the method. Fantastic!
I wonder, what do you think if the Screen's OnInitialize and OnActivate -methods were changed from void to async task? This way for example the OnInitialize method could be easily used to call the services:
protected async Task OnInitialize()
{
var data = await service.GetData();
var anotherData = await service.GetOtherData(data);
this.Items.AddRange(anotherData);
}
|