本文整理汇总了C#中Windows.UI.Xaml.Controls.ItemClickEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# ItemClickEventArgs类的具体用法?C# ItemClickEventArgs怎么用?C# ItemClickEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ItemClickEventArgs类属于Windows.UI.Xaml.Controls命名空间,在下文中一共展示了ItemClickEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ItemView_ItemClick
void ItemView_ItemClick(object sender, ItemClickEventArgs e)
{
// Navigate to the appropriate destination page, configuring the new page
// by passing required information as a navigation parameter
var gameId = ((PlayItemDataItem)e.ClickedItem).GameId;
this.Frame.Navigate(typeof(BoardGame), gameId);
}
示例2: ListView_ItemClick
private void ListView_ItemClick(object sender, ItemClickEventArgs e)
{
this.Frame.Navigate(
typeof(BasicSubPage),
e.ClickedItem,
new Windows.UI.Xaml.Media.Animation.DrillInNavigationTransitionInfo());
}
示例3: Control_ItemClick
private static void Control_ItemClick(object sender, ItemClickEventArgs e)
{
ListViewBase currentBase = null;
if(sender is ListView)
{
currentBase = sender as ListView;
}
else
{
currentBase = sender as GridView;
}
if (currentBase != null)
{
var command = GetItemClickCommand(currentBase);
var paramter = e.ClickedItem;
object obj = null;
if (paramter != null)
{
obj = paramter;
}
else
{
obj = currentBase.DataContext;
}
if (command != null && command.CanExecute(obj))
command.Execute(obj);
}
}
示例4: ItemView_ItemClick
/// <summary>
/// Invoked when an item is clicked.
/// </summary>
/// <param name="sender">The GridView (or ListView when the application is snapped)
/// displaying the item clicked.</param>
/// <param name="e">Event data that describes the item clicked.</param>
void ItemView_ItemClick(object sender, ItemClickEventArgs e)
{
// Navigate to the appropriate destination page, configuring the new page
// by passing required information as a navigation parameter
var groupId = ((TestGroup)e.ClickedItem).UniqueId;
this.Frame.Navigate(typeof(SplitPage), groupId);
}
示例5: ItemView_ItemClick
/// <summary>
/// アイテムがクリックされたときに呼び出されます。
/// </summary>
/// <param name="sender">クリックされたアイテムを表示する GridView (アプリケーションがスナップ
/// されている場合は ListView) です。</param>
/// <param name="e">クリックされたアイテムを説明するイベント データ。</param>
void ItemView_ItemClick(object sender, ItemClickEventArgs e)
{
// 適切な移動先のページに移動し、新しいページを構成します。
// このとき、必要な情報をナビゲーション パラメーターとして渡します
var itemId = ((SampleDataItem)e.ClickedItem).UniqueId;
this.Frame.Navigate(typeof(ItemDetailPage), itemId);
}
示例6: ItemView_ItemClick
private void ItemView_ItemClick (object sender, ItemClickEventArgs e)
{
if (e.ClickedItem != null) {
var feed = (FeedData)e.ClickedItem;
Frame.Navigate (typeof (SplitPage), feed);
}
}
示例7: studentList_ItemClick
private void studentList_ItemClick(object sender, ItemClickEventArgs e)
{
Downloads download = (Downloads)e.ClickedItem;
OpenFile(download);
}
示例8: ItemView_ItemClick
/// <summary>
/// Invoked when an item within a group is clicked.
/// </summary>
void ItemView_ItemClick(object sender, ItemClickEventArgs e)
{
Exception exception = null;
try
{
// Navigate to the appropriate destination page, configuring the new page
// by passing required information as a navigation parameter
var itemId = ((MainPageItem)e.ClickedItem).UniqueId;
if (itemId == "NewSurvey-StartNewSurvey")
Frame.Navigate(typeof(RoadSelectionPage));
else if (itemId == "DataMan-SyncData")
ButtonSync_OnClick(sender, null);
else if (itemId == "SyncRoad")
ButtonRoadSync_OnClick(sender, null);
else if (itemId == "EditRoadSegments")
NotificationHelper.ShowNewMessage("Sorry, This function is not ready yet. Please click other buttons");
else
this.Frame.Navigate(typeof(EditSurvey_RoadSelection));
}
catch (Exception _ex)
{
exception = _ex;
throw;
}
if (exception != null)
NotificationHelper.ShowErrorMessage(exception.Message);
}
示例9: ItemView_ItemClick
void ItemView_ItemClick(object sender, ItemClickEventArgs e)
{
if (e.ClickedItem is MovieInfo)
this.Frame.Navigate(typeof (MovieDetailsPage));
else
this.Zoom.IsZoomedInViewActive = false;
}
示例10: powerMenuList_ItemClick
private async void powerMenuList_ItemClick(object sender, ItemClickEventArgs e)
{
var item = e.ClickedItem as FrameworkElement;
if (item == null)
return;
// Not supported in latest releases
// TODO: Uncomment when fixed
//var dialog = new MessageDialog("Are you sure you want to " + (e.ClickedItem as TextBlock).Text.ToLower() + "?", (e.ClickedItem as TextBlock).Text.ToUpper());
//var resp = await dialog.ShowAsync();
//if (resp.Label == "No")
// return;
switch (item.Name)
{
case "ShutdownOption":
ShutdownHelper(ShutdownKind.Shutdown);
break;
case "RestartOption":
ShutdownHelper(ShutdownKind.Restart);
break;
}
}
示例11: ItemView_ItemClick
/// <summary>
/// Invoked when an item is clicked.
/// </summary>
/// <param name="sender">The GridView displaying the item clicked.</param>
/// <param name="e">Event data that describes the item clicked.</param>
private void ItemView_ItemClick(object sender, ItemClickEventArgs e)
{
// Navigate to the appropriate destination page, configuring the new page
// by passing required information as a navigation parameter
string itemId = ((CustomerDataItem) e.ClickedItem).Id;
Frame.Navigate(typeof (ItemDetailPage), itemId);
}
示例12: ListArticle_ItemClick
private void ListArticle_ItemClick(object sender, ItemClickEventArgs e)
{
var feed = e.ClickedItem as IFeedItem;
var detail = ViewModelLocator.Get<Detail_ViewModel>();
detail.CurrentFeed = feed;
App.Current.NavigationService.NavigateTo(Pages.DetailPage);
}
示例13: OptionSelected
private void OptionSelected(object sender, ItemClickEventArgs e)
{
if (e.ClickedItem == monsters)
{
Frame.Navigate(typeof(MonsterListPage));
}
else if (e.ClickedItem == items)
{
Frame.Navigate(typeof(ItemListPage));
}
else if (e.ClickedItem == weapons)
{
Frame.Navigate(typeof(WeaponTypePage));
}
else if (e.ClickedItem == armor)
{
Frame.Navigate(typeof(ArmorListPage));
}
else if (e.ClickedItem == skills)
{
Frame.Navigate(typeof(SkillListPage));
}
else if (e.ClickedItem == quests)
Frame.Navigate(typeof(QuestListPage));
else if (e.ClickedItem == combinations)
Frame.Navigate(typeof(CombinationListPage));
else if (e.ClickedItem == wyporium)
Frame.Navigate(typeof(WyporiumTradeList));
else if (e.ClickedItem == felyneSkills)
Frame.Navigate(typeof(FelyneSkillListPage));
}
示例14: ItemView_ItemClick
/// <summary>
/// 在单击某个项时进行调用。
/// </summary>
/// <param name="sender">显示所单击项的 GridView (在应用程序处于对齐状态时
/// 为 ListView)。</param>
/// <param name="e">描述所单击项的事件数据。</param>
void ItemView_ItemClick(object sender, ItemClickEventArgs e)
{
// 导航至相应的目标页,并
// 通过将所需信息作为导航参数传入来配置新页
var itemId = ((T_Rubbing)e.ClickedItem).ID;
this.Frame.Navigate(typeof(RubbingPhotosPage), itemId);
}
示例15: ListViewSpeakers_ItemClick
private async void ListViewSpeakers_ItemClick(object sender, ItemClickEventArgs e)
{
string personid = (e.ClickedItem as Person).Name.Replace(' ', '_');
personid = personid.ToLower();
string url = string.Format("https://fosdem.org/2016/schedule/speaker/{0}/", personid);
await Windows.System.Launcher.LaunchUriAsync(new Uri(url));
}