Пример #1
0
        private void RepostsCanvas_OnTap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            e.Handled        = true;
            this._sharePopup = new DialogService()
            {
                SetStatusBarBackground = true,
                HideOnNavigation       = false
            };
            WallPost wallPost = this._wallPost;

            this._sharePostUC = new SharePostUC(wallPost != null ? -wallPost.owner_id : 0L);
            this._sharePostUC.SetShareEnabled(this.CanPublish);
            this._sharePostUC.SetShareCommunityEnabled(this.CanRepostToCommunity);
            this._sharePostUC.SendTap += (EventHandler)((o, args) =>
            {
                ShareInternalContentDataProvider contentDataProvider = new ShareInternalContentDataProvider();
                contentDataProvider.Message = this._sharePostUC.Text;
                contentDataProvider.WallPost = this._wallPost;
                contentDataProvider.Video = this._video;
                contentDataProvider.StoreDataToRepository();
                ShareContentDataProviderManager.StoreDataProvider((IShareContentDataProvider)contentDataProvider);
                this._sharePopup.Hide();
                Navigator.Current.NavigateToPickConversation();
            });
            this._sharePostUC.ShareTap         += (EventHandler)((o, args) => this.Share(0, ""));
            this._sharePopup.Child              = (FrameworkElement)this._sharePostUC;
            this._sharePopup.AnimationType      = DialogService.AnimationTypes.None;
            this._sharePopup.AnimationTypeChild = DialogService.AnimationTypes.Swivel;
            this._sharePopup.Show(null);
        }
Пример #2
0
 private void _appBarButtonShare_Click(object sender, EventArgs e)
 {
     this._ds = new DialogService();
     this._ds.SetStatusBarBackground = false;
     this._ds.HideOnNavigation       = false;
     this._sharePostUC           = new SharePostUC(0L);
     this._sharePostUC.SendTap  += new EventHandler(this.ButtonSend_Click);
     this._sharePostUC.ShareTap += new EventHandler(this.ButtonShare_Click);
     this._ds.Child              = (FrameworkElement)this._sharePostUC;
     this._ds.AnimationType      = DialogService.AnimationTypes.None;
     this._ds.AnimationTypeChild = DialogService.AnimationTypes.Swivel;
     this._ds.Show(null);
 }
Пример #3
0
 private void OpenSharePopup()
 {
     this._ds = new DialogService()
     {
         SetStatusBarBackground = false,
         HideOnNavigation       = false
     };
     this._sharePostUC           = new SharePostUC();
     this._sharePostUC.SendTap  += new EventHandler(this.ButtonSendWithMessage_Click);
     this._sharePostUC.ShareTap += (EventHandler)((sender, args) => this.Share(0L, ""));
     this._ds.Child              = (FrameworkElement)this._sharePostUC;
     this._ds.AnimationType      = DialogService.AnimationTypes.None;
     this._ds.AnimationTypeChild = DialogService.AnimationTypes.Swivel;
     this._ds.Show(null);
 }
Пример #4
0
 private void _appBarButtonShare_Click(object sender, EventArgs e)
 {
     ((Control)this).Focus();
     this._dc = new DialogService();
     this._dc.SetStatusBarBackground = true;
     this._dc.HideOnNavigation       = false;
     this._sharePostUC = new SharePostUC(-this.PostCommentsVM.OwnerId);
     this._sharePostUC.SetShareEnabled(this.PostCommentsVM.CanRepost);
     this._sharePostUC.SetShareCommunityEnabled(this.PostCommentsVM.CanRepostCommunity);
     this._sharePostUC.SendTap  += new EventHandler(this.buttonSend_Click);
     this._sharePostUC.ShareTap += new EventHandler(this.buttonShare_Click);
     this._dc.Child              = (FrameworkElement)this._sharePostUC;
     this._dc.AnimationType      = DialogService.AnimationTypes.None;
     this._dc.AnimationTypeChild = DialogService.AnimationTypes.Swivel;
     this._dc.Show((UIElement)this.scroll);
 }
Пример #5
0
 private void OpenSharePopup()
 {
     this._ds = new DialogService()
     {
         SetStatusBarBackground = false,
         HideOnNavigation       = false
     };
     this._sharePostUC = new SharePostUC(0L);
     this._sharePostUC.SetShareEnabled(false);
     this._sharePostUC.SetShareCommunityEnabled(false);
     this._sharePostUC.SendTap  += new EventHandler(this.ButtonSendWithMessage_Click);
     this._ds.Child              = (FrameworkElement)this._sharePostUC;
     this._ds.AnimationType      = DialogService.AnimationTypes.None;
     this._ds.AnimationTypeChild = DialogService.AnimationTypes.Swivel;
     SystemTray.ForegroundColor  = (((SolidColorBrush)Application.Current.Resources["PhoneSystemTrayForegroundBrush"]).Color);
     this._ds.Closed            += (EventHandler)((sender, args) => this.SetupSystemTray());
     this._ds.Show(null);
 }
Пример #6
0
 private void _appBarButtonShare_Click(object sender, EventArgs e)
 {
     this._ds = new DialogService()
     {
         SetStatusBarBackground = true,
         HideOnNavigation       = false
     };
     this._sharePostUC           = new SharePostUC(0L);
     this._sharePostUC.SendTap  += new EventHandler(this.ButtonSend_Click);
     this._sharePostUC.ShareTap += new EventHandler(this.ButtonShare_Click);
     if (this._fromDialog || this._friendsOnly)
     {
         this._sharePostUC.SetShareCommunityEnabled(false);
         this._sharePostUC.SetShareCommunityEnabled(false);
     }
     this._ds.Child              = (FrameworkElement)this._sharePostUC;
     this._ds.AnimationType      = DialogService.AnimationTypes.None;
     this._ds.AnimationTypeChild = DialogService.AnimationTypes.Swivel;
     this._ds.Show(null);
 }