예제 #1
0
        private async void EquipmentGridView_ItemClick(object sender, ItemClickEventArgs e)
        {
            GoodEquipment ge = e.ClickedItem as GoodEquipment;

            var contentDialog = new ContentDialog()
            {
                Content           = new GoodEquipmentDialog(ge),
                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();
        }
 // 搜索
 protected void LbSearchClick(object sender, ImageClickEventArgs e)
 {
     SearchKey = TB_Search.Text;
     GoodsGrid.Rebind();
 }