public SinaWeiboLoginPopup(PopControl pc)
 {
     this.InitializeComponent();
     this._pc = pc;
     String authPage = String.Format("{0}?client_id={1}&response_type=code&redirect_uri={2}&display=mobile",
        "https://api.weibo.com/oauth2/authorize",
        SinaWeiboSDKData.AppKey,
        SinaWeiboSDKData.RedirectUri
        );
     Browser.Navigate(new Uri(authPage));
 }
 public DoubanLoginControl(PopControl pc)
 {
     this.InitializeComponent();
     this._pc = pc;
     String authPage = String.Format("{0}?client_id={1}&response_type=code&redirect_uri={2}&display=mobile&scope={3}",
        ConstDefine.OAuth2_0Url,
        DoubanSDKData.AppKey,
        DoubanSDKData.RedirectUri,
        DoubanSDKData.Scope
        );
     Browser.Navigate(new Uri(authPage));
 }
 public RenrenLoginControl(PopControl pc)
 {
     this.InitializeComponent();
     this._pc = pc;
     String scope = RenrenSDKData.Scope;
     if (String.IsNullOrEmpty(scope))
         scope = "";
     String authPage = String.Format("{0}?client_id={1}&response_type=token&redirect_uri={2}&display=mobile&scope={3}",
        "https://graph.renren.com/oauth/authorize",
        RenrenSDKData.AppKey,
        RenrenSDKData.RedirectUri,
        scope
        );
     Browser.Navigate(new Uri(authPage));
 }
 private void Share_Tapped(object sender, TappedRoutedEventArgs e)
 {
     PopControl pc = new PopControl();
     SelectPublicSourceControl control = new SelectPublicSourceControl(pc);
     control.ChooseAction = ChooseActionCallback;
     pc.SetCustomContent(control);
     pc.ShowPop();
 }
 private void Write_Tapped(object sender, TappedRoutedEventArgs e)
 {
     topAppBar.IsOpen = false;
     bottomAppBar.IsOpen = false;
     MyControl.PopControl pc = new MyControl.PopControl();
     MyControl.SelectPublicSourceControl control = new MyControl.SelectPublicSourceControl(pc);
     control.ChooseAction = ChooseActionCallback;
     pc.SetCustomContent(control);
     pc.ShowPop();
 }
 public RssSetPathControl(PopControl pc)
 {
     this.InitializeComponent();
     this._pc = pc;
 }
 public SelectPublicSourceControl(PopControl pc)
 {
     this.InitializeComponent();
     this._pc = pc;
 }
 private void DoubanLogin_Click(object sender, RoutedEventArgs e)
 {
     DoubanLoginControl.AuthSuccessComplete = new Action(() =>
     {
         DoubanRefreshAccount();
     });
     PopControl pc = new PopControl();
     DoubanLoginControl sinaPopup = new DoubanLoginControl(pc);
     pc.SetCustomContent(sinaPopup);
     pc.ShowPop();
 }
 private void RssSetPath_Click(object sender, RoutedEventArgs e)
 {
     PopControl pc = new PopControl();
     RssSetPathControl control = new RssSetPathControl(pc);
     control.ConfirmAction = RssSetPathCallback;
     pc.SetCustomContent(control);
     pc.ShowPop();            
 }
        private void SinaWeiboLogin_Click(object sender, RoutedEventArgs e)
        {
            SinaWeiboLoginPopup.AuthSuccessComplete = new Action(() =>
            {
                SinaWeiboRefreshAccount();
            });
            PopControl pc = new PopControl();
            SinaWeiboLoginPopup sinaPopup = new SinaWeiboLoginPopup(pc);
            pc.SetCustomContent(sinaPopup);
            pc.ShowPop();
            //sinaWeiboLoginPopup.Show(this);


        }