下载codeplex上的winrttrigger开源控件

Winrt.Tirgger.EventTrigger trigger = new Winrt.Tirgger.EventTrigger();
            trigger.HookEvent("ItemClick", gridView);
            MainViewModel model = ServiceLocator.Current.GetInstance<MainViewModel>();
            trigger.TriggerActions.Add(new Tirgger.TriggerAction() { Command = model.ItemClick, PassEventArgsToCommand = true });

04-14 11:40