/// <summary> /// PivotViewer ItemActionExecuted event handler /// </summary> /// <param name="sender">sender object</param> /// <param name="e">Event data for ItemActionExecuted event</param> private void OnPivotViewerItemActionExecuted(object sender, ItemActionEventArgs e) { if (e.CustomActionId == ZentityViewer.VisualExplorerActionId) { HtmlPage.Window.Navigate(new Uri(string.Format("../Default.aspx?{0}={1}", QueryStringKeys.ResourceId, e.ItemId), UriKind.Relative), "_blank"); } }
/// <summary> /// Handle a custom action execution /// </summary> private void PivotViewer_ItemActionExecuted(object sender, ItemActionEventArgs args) { PivotViewer pivotViewer = (PivotViewer)sender; // Add or remove the item from the cart, depending the action Id. if (args.CustomActionId == AddItemActionId) { m_itemIdsInCart.Add(args.ItemId); } else if (args.CustomActionId == RemoveItemActionId) { m_itemIdsInCart.Remove(args.ItemId); } // After an action has been executed, the ListBox is stale, so update it RefreshCartContentsListBox(); }
private void OnPivotViewerItemActionExecuted(object sender, ItemActionEventArgs e) { PivotItem item = x_PivotViewer.GetItem(e.ItemId); if (e.CustomActionId == "Add") MessageBox.Show(string.Format("Add {0}", item.Name)); if (e.CustomActionId == "Details") MessageBox.Show(string.Format("Details of {0}", item.Name)); }
private void NetflixPivotViewer_ItemActionExecuted(object sender, ItemActionEventArgs e) { BrowseTo(e.ItemId); }
void pvLesson2_ItemActionExecuted(object sender, ItemActionEventArgs e) { _viewModel.Events.Add("[" + e.CustomActionId + "] - " + e.ItemId); }