• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Tasks.WebBrowserTask类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Microsoft.Phone.Tasks.WebBrowserTask的典型用法代码示例。如果您正苦于以下问题:C# WebBrowserTask类的具体用法?C# WebBrowserTask怎么用?C# WebBrowserTask使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



WebBrowserTask类属于Microsoft.Phone.Tasks命名空间,在下文中一共展示了WebBrowserTask类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: AppUpdateControl

        public AppUpdateControl(IEnumerable<IAppVersion> appVersions, Action<IAppVersion> updateAction)
        {
            this.NewestVersion = appVersions.First();
            InitializeComponent();

            this.AppIconImage.ImageFailed += (sender, e) => { this.AppIconImage.Source = new BitmapImage(new Uri("/Assets/windows_phone.png", UriKind.RelativeOrAbsolute)); };
            this.AppIconImage.Source = new BitmapImage(new Uri(HockeyClient.Current.AsInternal().ApiBaseVersion2 + "apps/" + NewestVersion.PublicIdentifier + ".png"));

            this.ReleaseNotesBrowser.Opacity = 0;
            this.ReleaseNotesBrowser.Navigated += (sender, e) => { (this.ReleaseNotesBrowser.Resources["fadeIn"] as Storyboard).Begin(); };
            this.ReleaseNotesBrowser.NavigateToString(WebBrowserHelper.WrapContent(NewestVersion.Notes));
            this.ReleaseNotesBrowser.Navigating += (sender, e) =>
            {
                e.Cancel = true;
                WebBrowserTask browserTask = new WebBrowserTask();
                browserTask.Uri = e.Uri;
                browserTask.Show();
            };
            this.InstallAETX.Click += (sender, e) =>
            {
                WebBrowserTask webBrowserTask = new WebBrowserTask();
                webBrowserTask.Uri = new Uri(HockeyClient.Current.AsInternal().ApiBaseVersion2 + "apps/" + NewestVersion.PublicIdentifier + ".aetx", UriKind.Absolute);
                webBrowserTask.Show();
            };
            this.InstallOverApi.Click += (sender, e) => {
                this.Overlay.Visibility = Visibility.Visible;
                updateAction.Invoke(NewestVersion); 
            };
            
        }
开发者ID:bitstadium,项目名称:HockeySDK-Windows,代码行数:30,代码来源:AppUpdateControl.xaml.cs


示例2: Navigate

        public void Navigate()
        {
            App.ViewModel.TrackPageView(this.Name, "/" + this.Parent + "/Video/" + this.Name);

            bool noVideoFileUri = this.VideoFileUri == null || string.IsNullOrWhiteSpace(this.VideoFileUri.ToString());
            #if !WINDOWS_PHONE
            if (noVideoFileUri)
            {
                Windows.System.Launcher.LaunchUriAsync(this.VideoUri);
            }
            else
            {
                Windows.System.Launcher.LaunchUriAsync(this.VideoFileUri);
            }
            #else
            WebBrowserTask browser = new WebBrowserTask();

            if (noVideoFileUri)
            {
                browser.Uri = this.VideoUri;
            }
            else
            {
                browser.Uri = this.VideoFileUri;
            }

            browser.Show();
            #endif
        }
开发者ID:joelmartinez,项目名称:Khan-Academy-for-Windows-Phone,代码行数:29,代码来源:VideoItem.cs


示例3: TrackInBrowser

        private void TrackInBrowser(object sender, System.Windows.Input.GestureEventArgs e)
        {
            string trackingURL = "";
            PackageViewModel current = (PackageViewModel)DataContext;

            switch (current.Carrier)
            {
                case Carriers.UPS:
                    trackingURL = "http://wwwapps.ups.com/WebTracking/track?track=yes&trackNums=";
                    break;
                case Carriers.FEDEX:
                    trackingURL = "http://www.fedex.com/Tracking?action=track&tracknumbers=";
                    break;
                case Carriers.USPS:
                    trackingURL = "https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=";
                    break;
                case Carriers.DHL:
                    trackingURL = "http://track.dhl-usa.com/TrackByNbr.asp?ShipmentNumber=";
                    break;
                case Carriers.ONTRAC:
                    trackingURL = "http://www.ontrac.com/trackingres.asp?tracking_number=";
                    break;
            }

            trackingURL += current.TrackingNumber;

            WebBrowserTask task = new WebBrowserTask();
            task.Uri = new Uri(trackingURL, UriKind.Absolute);
            task.Show();
        }
开发者ID:joplinmj,项目名称:Tracker,代码行数:30,代码来源:DetailsPage.xaml.cs


示例4: HyperlinkButton_Click

 private void HyperlinkButton_Click(object sender, RoutedEventArgs e)
 {
     string uri = (sender as FrameworkElement).Tag as string;
     WebBrowserTask task = new WebBrowserTask();
     task.Uri = new Uri(uri, UriKind.Absolute);
     task.Show();
 }
开发者ID:kindasimple,项目名称:PGHTechFest,代码行数:7,代码来源:Speakers.xaml.cs


示例5: Button_Click

 private void Button_Click(object sender, RoutedEventArgs e)
 {
     //WebBrowserTask used to open IE and send to a pre-determinated webpage
     WebBrowserTask follow = new WebBrowserTask();
     follow.Uri = new Uri("https://m.twitter.com/BrianoStorm", UriKind.Absolute);
     follow.Show();
 }
开发者ID:BrianLima,项目名称:Helix,代码行数:7,代码来源:About.xaml.cs


示例6: gcw_StatusChanged

        private void gcw_StatusChanged(object sender, GeoPositionStatusChangedEventArgs e)
        {
            //throw new NotImplementedException();
            if (e.Status == GeoPositionStatus.Ready)
            {
                GeoCoordinate coord = gcw.Position.Location;
                String CurLatLocation = coord.Latitude.ToString("0.000");
                String CurLonLocation = coord.Longitude.ToString("0.000");
                latitude.Text = "Latitude: " + CurLatLocation;
                longitude.Text = "Longitude: " + CurLonLocation;
                //After you have the location, stop the service to conserve power
                gcw.Stop();

                //Open Web Browser to navigate to Google Map using the current location from GPS;
                WebBrowserTask WebBrowserTask = new WebBrowserTask();
                WebBrowserTask.Uri = new Uri("http://maps.google.com/maps?q=" + CurLatLocation + "," +
                    CurLonLocation);
                WebBrowserTask.Show();

            }
            if (e.Status == GeoPositionStatus.Disabled || e.Status == GeoPositionStatus.NoData)
            {
                latitude.Text = "GPS Disabled";
                longitude.Text = "Please turn on your Location Service (GPS) in the system setting.";
                gcw.Stop();
            }
        }
开发者ID:EGartin,项目名称:AurariaCampusAppSE,代码行数:27,代码来源:GPSLocation.xaml.cs


示例7: womansBureau_Tap

 private void womansBureau_Tap(object sender, System.Windows.Input.GestureEventArgs e)
 {
     Uri uri = new Uri("http://www.dol.gov/wb/welcome.html");
     WebBrowserTask webBrowserTask = new WebBrowserTask();
     webBrowserTask.Uri = uri;
     webBrowserTask.Show();
 }
开发者ID:ravs,项目名称:Narrow-Wage-Gap,代码行数:7,代码来源:MainPage.xaml.cs


示例8: Launch

        protected async Task Launch(Uri appToAppUri, Uri webFallbackUri)
        {
#if WINDOWS_PHONE || NETFX_CORE
#if WINDOWS_PHONE
            bool canLaunch = string.Equals(DeviceStatus.DeviceManufacturer, "Nokia", StringComparison.OrdinalIgnoreCase) || string.Equals(DeviceStatus.DeviceManufacturer, "Microsoft", StringComparison.OrdinalIgnoreCase);
#else
            bool canLaunch = true;
#endif
            if (canLaunch)
            {
                // Append the clientId if one has been supplied...
                if (!string.IsNullOrEmpty(this.ClientId))
                {
                    if (appToAppUri.ToString().Contains("?"))
                    {
                        appToAppUri = new Uri(appToAppUri.ToString() + "&client_id=" + this.ClientId);
                    }
                    else
                    {
                        appToAppUri = new Uri(appToAppUri.ToString() + "?client_id=" + this.ClientId);
                    }
                }

                await Windows.System.Launcher.LaunchUriAsync(appToAppUri);
                return;
            }
#endif
#if WINDOWS_PHONE
            WebBrowserTask web = new WebBrowserTask();
            web.Uri = webFallbackUri;
            web.Show();
#endif
        }
开发者ID:ni3bobade,项目名称:.net-sdk,代码行数:33,代码来源:TaskBase.cs


示例9: websiteLink_Click

        private void websiteLink_Click(object sender, RoutedEventArgs e)
        {
            WebBrowserTask browserTask = new WebBrowserTask();

            browserTask.URL = "www.griffinfujioka.tumblr.com";
            browserTask.Show(); 
        }
开发者ID:griffinfujioka,项目名称:Ideas,代码行数:7,代码来源:FujiokaPage.xaml.cs


示例10: appbar_web_Click_1

 private void appbar_web_Click_1(object sender, EventArgs e)
 {
     DisplayModel dm = ObjectSaver.GetInstance().Get() as DisplayModel;
     WebBrowserTask wbt = new WebBrowserTask();
     wbt.Uri = new Uri(dm.Link,UriKind.Absolute);
     wbt.Show();
 }
开发者ID:ahmeda8,项目名称:Deals2Buy,代码行数:7,代码来源:Details.xaml.cs


示例11: hyperlinkButton_Click

 private void hyperlinkButton_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     WebBrowserTask wbTask = new WebBrowserTask();
     wbTask.Uri = new Uri("https://mobile.twitter.com/PandaWorks2012",
         UriKind.RelativeOrAbsolute);
     wbTask.Show();
 }
开发者ID:sunnnjin,项目名称:Blackbox,代码行数:7,代码来源:AboutPage.xaml.cs


示例12: homePage_Click

        private void homePage_Click(object sender, RoutedEventArgs e)
        {
            WebBrowserTask webBrowserTask = new WebBrowserTask();

            webBrowserTask.Uri = new Uri("http://www.howboutcoffeeapp.com", UriKind.Absolute);
            webBrowserTask.Show();
        }
开发者ID:smartboyathome,项目名称:How-About-Coffee,代码行数:7,代码来源:Splash.xaml.cs


示例13: aauw_Tap

 private void aauw_Tap(object sender, System.Windows.Input.GestureEventArgs e)
 {
     Uri uri = new Uri("http://www.aauw.org/");
     WebBrowserTask webBrowserTask = new WebBrowserTask();
     webBrowserTask.Uri = uri;
     webBrowserTask.Show();
 }
开发者ID:ravs,项目名称:Narrow-Wage-Gap,代码行数:7,代码来源:Socialize.xaml.cs


示例14: ncpe_Tap

 private void ncpe_Tap(object sender, System.Windows.Input.GestureEventArgs e)
 {
     Uri uri = new Uri("http://www.pay-equity.org/index.html");
     WebBrowserTask webBrowserTask = new WebBrowserTask();
     webBrowserTask.Uri = uri;
     webBrowserTask.Show();
 }
开发者ID:ravs,项目名称:Narrow-Wage-Gap,代码行数:7,代码来源:Socialize.xaml.cs


示例15: wage_Tap

 private void wage_Tap(object sender, System.Windows.Input.GestureEventArgs e)
 {
     Uri uri = new Uri("http://www.wageproject.org/index.php");
     WebBrowserTask webBrowserTask = new WebBrowserTask();
     webBrowserTask.Uri = uri;
     webBrowserTask.Show();
 }
开发者ID:ravs,项目名称:Narrow-Wage-Gap,代码行数:7,代码来源:Socialize.xaml.cs


示例16: BTNWeibo_Click

 private void BTNWeibo_Click(object sender, RoutedEventArgs e)
 {
     WebBrowserTask wbt01 = new WebBrowserTask();
     UriBuilder uriSite = new UriBuilder("http://weibo.com/jevonsflash");
     wbt01.Uri = uriSite.Uri;
     wbt01.Show();
 }
开发者ID:jevonsflash,项目名称:MusicPlayer,代码行数:7,代码来源:SettingPage.xaml.cs


示例17: AboutViewModel

        public AboutViewModel()
        {
            EmailCommand = new RelayCommand<string>(emailAddress =>
            {
                try
                {
                    var task = new EmailComposeTask
                                   {
                                       To = emailAddress,
                                       Subject = "StackRep"
                                   };
                    task.Show();
                }
                catch { }
            });

            WebsiteCommand = new RelayCommand<string>(url =>
            {
                try
                {
                    var task = new WebBrowserTask
                                   {
                                       Uri = new Uri(url)
                                   };
                    task.Show();
                }
                catch { }
            });
        }
开发者ID:geersch,项目名称:StackRep,代码行数:29,代码来源:AboutViewModel.cs


示例18: twitterLink_Click

        private void twitterLink_Click(object sender, RoutedEventArgs e)
        {
            WebBrowserTask browserTask = new WebBrowserTask();

            browserTask.URL = "www.twitter.com/griffinfujioka";
            browserTask.Show();
        }
开发者ID:griffinfujioka,项目名称:Ideas,代码行数:7,代码来源:FujiokaPage.xaml.cs


示例19: epAct_Tap

 private void epAct_Tap(object sender, System.Windows.Input.GestureEventArgs e)
 {
     Uri uri = new Uri("http://www.eeoc.gov/laws/statutes/epa.cfm");
     WebBrowserTask webBrowserTask = new WebBrowserTask();
     webBrowserTask.Uri = uri;
     webBrowserTask.Show();
 }
开发者ID:ravs,项目名称:Narrow-Wage-Gap,代码行数:7,代码来源:MainPage.xaml.cs


示例20: hyperlinkButton1_Click

        private void hyperlinkButton1_Click(object sender, RoutedEventArgs e)
        {
            WebBrowserTask browserTask = new WebBrowserTask();

            browserTask.URL = "http://www.windowsphone.com/en-US/publishers/Griffin%20Fujioka?appid=17f6789f-95ce-4afa-8e48-3866768dc145&name=Griffin Fujioka";
            browserTask.Show(); 
        }
开发者ID:griffinfujioka,项目名称:Ideas,代码行数:7,代码来源:FujiokaPage.xaml.cs



注:本文中的Microsoft.Phone.Tasks.WebBrowserTask类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Modularity.ModuleInfo类代码示例发布时间:2022-05-26
下一篇:
C# Tasks.MarketplaceReviewTask类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap