Exemple #1
0
 public void InitializeComponent()
 {
     if (this._contentLoaded)
     {
         return;
     }
     this._contentLoaded = true;
     Application.LoadComponent(this, new Uri("/VKClient.Common;component/UC/GameRequestsSectionItemUC.xaml", UriKind.Relative));
     this.ucFooter = (GroupFooterUC)base.FindName("ucFooter");
 }
Exemple #2
0
 public void InitializeComponent()
 {
     if (this._contentLoaded)
     {
         return;
     }
     this._contentLoaded = true;
     Application.LoadComponent(this, new Uri("/VKClient.Common;component/UC/GamesFriendsActivitySectionItemUC.xaml", UriKind.Relative));
     this.listBoxActivity = (ItemsControl)base.FindName("listBoxActivity");
     this.ucFooter        = (GroupFooterUC)base.FindName("ucFooter");
 }
 public void InitializeComponent()
 {
     if (this._contentLoaded)
     {
         return;
     }
     this._contentLoaded = true;
     Application.LoadComponent(this, new Uri("/VKClient.Common;component/UC/GamesInvitesSectionItemUC.xaml", UriKind.Relative));
     this.HeaderUC       = (GroupHeaderUC)base.FindName("HeaderUC");
     this.InvitesListBox = (ItemsControl)base.FindName("InvitesListBox");
     this.FooterUC       = (GroupFooterUC)base.FindName("FooterUC");
 }
Exemple #4
0
        private static void OnFooterTextChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            GroupFooterUC groupFooterUc = d as GroupFooterUC;

            if (groupFooterUc == null)
            {
                return;
            }
            // ISSUE: explicit reference operation
            string newValue = e.NewValue as string;

            groupFooterUc.textBlockFooter.Text = (!string.IsNullOrEmpty(newValue) ? newValue : "");
        }