Пример #1
0
        private static void OnItemsSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            GameRequestsSectionItemUC requestsSectionItemUc = d as GameRequestsSectionItemUC;

            // ISSUE: explicit reference operation
            if (requestsSectionItemUc == null || !(e.NewValue is List <GameRequestHeader>))
            {
                return;
            }
            requestsSectionItemUc.UpdateData();
        }
Пример #2
0
 public void InitializeComponent()
 {
     if (this._contentLoaded)
     {
         return;
     }
     this._contentLoaded = true;
     Application.LoadComponent(this, new Uri("/VKClient.Common;component/UC/GameView.xaml", UriKind.Relative));
     this.gridRoot             = (Grid)base.FindName("gridRoot");
     this.borderBackground     = (Border)base.FindName("borderBackground");
     this.ViewportCtrl         = (ViewportControl)base.FindName("ViewportCtrl");
     this.borderBackgroundMock = (Border)base.FindName("borderBackgroundMock");
     this.ContentPanel         = (MyVirtualizingStackPanel)base.FindName("ContentPanel");
     this.HeaderContentPanel   = (StackPanel)base.FindName("HeaderContentPanel");
     this.Header         = (GameViewHeaderUC)base.FindName("Header");
     this.ucFooter       = (FooterUC)base.FindName("ucFooter");
     this.loadingBar     = (ProgressBar)base.FindName("loadingBar");
     this.ucGameRequests = (GameRequestsSectionItemUC)base.FindName("ucGameRequests");
     this.WallPanel      = (MyVirtualizingPanel2)base.FindName("WallPanel");
     this.HeaderSticky   = (GameViewHeaderUC)base.FindName("HeaderSticky");
     this.panelOverlay   = (Border)base.FindName("panelOverlay");
 }