Beispiel #1
0
        protected void ListViewOnItemTapped(object sender, ItemTappedEventArgs e)
        {
            Debug.WriteLine("ListViewOnItemTapped");

            if (((ListView)sender).SelectedItem == null)
            {
                return;
            }

            var menuItem = e.Item as MainMenuItem;

            if (menuItem != null)
            {
                switch (menuItem.MenuType)
                {
                case MenuType.Login:
                {
                    break;
                }

                case MenuType.WebView:
                {
                    var webViewViewModel = new WebViewViewModel(menuItem);
                    MasterViewModel.CurrentDetailPage = new CustomWebView(webViewViewModel);
                    break;
                }

                default:
                {
                    //MenuType Standard
                    break;
                }
                }

                ((ListView)sender).SelectedItem = null;
            }
        }
Beispiel #2
0
        public CustomWebView(WebViewViewModel webViewViewModel) : this()
        {
            Debug.WriteLine("New WebView");

            _titledWebView.BindingContext = webViewViewModel;
        }