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"); }
private void MoveToNextOrPrevious(bool next) { if (next) { GamesCatalogBannersSlideView.Swap(this._elements, 0, 1); GamesCatalogBannersSlideView.Swap(this._elements, 1, 2); } else { GamesCatalogBannersSlideView.Swap(this._elements, 1, 2); GamesCatalogBannersSlideView.Swap(this._elements, 0, 1); } this.UpdateSources(false, new bool?(next)); }
private static void OnBackgroundBrushChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { GamesCatalogBannersSlideView bannersSlideView = d as GamesCatalogBannersSlideView; if (bannersSlideView == null) { return; } // ISSUE: explicit reference operation Brush newValue = e.NewValue as Brush; if (newValue == null) { return; } ((Panel)bannersSlideView.gridRoot).Background = newValue; }