示例#1
0
        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);
        }
示例#2
0
        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);
            }
        }
示例#3
0
        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);
            }
        }
示例#4
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            ZNavigationArgs args = (e.Parameter != null) ? (ZNavigationArgs)e.Parameter : new ZNavigationArgs();

            _getData(args.SearchValue, args.Refresh);
        }