public override async void Activated(object args) { base.Activated(args); // do the search... await SearchAsync((string)args); }