private async void ToyGridView_ItemClick(object sender, ItemClickEventArgs e) { GoodToy gt = e.ClickedItem as GoodToy; var contentDialog = new ContentDialog() { Content = new GoodToyDialog(gt), PrimaryButtonText = "确定", FullSizeDesired = false }; contentDialog.Style = transparent; contentDialog.Closed += async(_s, _e) => { await GoodsGrid.Blur(value : 0, duration : 0, delay : 0).StartAsync(); contentDialog.Hide(); }; contentDialog.PrimaryButtonClick += async(_s, _e) => { await GoodsGrid.Blur(value : 0, duration : 0, delay : 0).StartAsync(); contentDialog.Hide(); }; await GoodsGrid.Blur(value : 7, duration : 100, delay : 0).StartAsync(); await contentDialog.ShowAsync(); }
public GoodToyDialog(GoodToy gt) { this.InitializeComponent(); ToyImage.Source = new BitmapImage(new Uri(gt.Picture)); ToyName.Text = gt.Name; ToyEnName.Text = gt.EnName; ROG.IsChecked = gt.IsROG; SW.IsChecked = gt.IsSW; DST.IsChecked = gt.IsDST; Console.Text = gt.Console; }