private void goToTag(object sender, ItemClickEventArgs e) { var topic = e.ClickedItem as ZModelTopic; ZNavigationArgs args = new ZNavigationArgs() { SearchValue = topic.id.ToString() }; Frame.Navigate(typeof(ZViewTopics), args); }
private void searchButton_Click(object sender, RoutedEventArgs e) { ZNavigationItem s = searchCombobox.SelectedItem as ZNavigationItem; if (s != null) { ZNavigationArgs args = new ZNavigationArgs() { SearchValue = searchBox.Text, Refresh = true }; _navigate(s, args); } }
private void refresh_click(object sender, RoutedEventArgs e) { ZNavigationItem navItem = _frameToNavigationItem(); ZNavigationArgs args = new ZNavigationArgs() { SearchValue = SearchValue, Refresh = true }; if (navItem.ClassType != null) { _navigate(navItem, args); } }
protected override void OnNavigatedTo(NavigationEventArgs e) { ZNavigationArgs args = (e.Parameter != null) ? (ZNavigationArgs)e.Parameter : new ZNavigationArgs(); _getData(args.SearchValue, args.Refresh); }