Пример #1
0
 public void InitializeComponent()
 {
     if (this._contentLoaded)
     {
         return;
     }
     this._contentLoaded = true;
     Application.LoadComponent(this, new Uri("/VKClient.Common;component/UC/GamesCatalogBannersContainer.xaml", UriKind.Relative));
     this.panelCatalogBanners = (StackPanel)base.FindName("panelCatalogBanners");
     this.slideView           = (GamesCatalogBannersSlideView)base.FindName("slideView");
     this.groupHeader         = (GroupHeaderUC)base.FindName("groupHeader");
 }
 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");
 }
Пример #3
0
        private static void IsShowAllVisible_OnChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            GroupHeaderUC groupHeaderUc = d as GroupHeaderUC;

            if (groupHeaderUc == null)
            {
                return;
            }
            // ISSUE: explicit reference operation
            if ((bool)e.NewValue)
            {
                MetroInMotion.SetTilt((DependencyObject)groupHeaderUc.gridContainer, 1.5);
                ((UIElement)groupHeaderUc.textBlockShowAll).Visibility = Visibility.Visible;
            }
            else
            {
                MetroInMotion.SetTilt((DependencyObject)groupHeaderUc.gridContainer, 0.0);
                ((UIElement)groupHeaderUc.textBlockShowAll).Visibility = Visibility.Collapsed;
            }
        }