private void tileControl1_EndItemDragging(object sender, TileItemDragEventArgs e) { /* var count = ((TileControl)sender).Groups[0].Items.Count; ITileItem item; for (int i = 0; i < count; i++) { item = (ITileItem)((TileControl)sender).Groups[0].Items[i]; item.Elements[0].Text = (i == 0) ? "ภาพหลัก" : "ภาพที่ " + i; } */ }
void MainMenu_EndItemDragging(object sender, TileItemDragEventArgs e) { FlyoutAction action = new FlyoutAction(); action.Caption = "Confirm"; //action.Commands.Add(FlyoutCommand.OK); //action.Commands.Add(FlyoutCommand.Cancel); MyFlyoutDialog dialog = new MyFlyoutDialog(this, action, new UserControl1()); dialog.ShowDialog(); e.Cancel = String.IsNullOrEmpty(e.TargetGroup.Text); }