Exemple #1
0
        private void UpdateFloatControlsVisibility()
        {
            FloatActionsUC ucFloatActions = this.ucFloatActions;
            Rect           viewport1      = this.viewportControl.Viewport;
            // ISSUE: explicit reference operation
            int num1 = ((Rect)@viewport1).Y <= this._floatActionsLockThreshold || this._floatActionsLockThreshold <= 0.0 ? 0 : 1;

            ((UIElement)ucFloatActions).Visibility = ((Visibility)num1);
            double       num2         = this._floatActionsLockThreshold + ((FrameworkElement)this.ucNewMessage).ActualHeight;
            NewMessageUC ucNewMessage = this.ucNewMessage;
            Rect         viewport2    = this.viewportControl.Viewport;
            // ISSUE: explicit reference operation
            int num3 = ((Rect)@viewport2).Y <= num2 || num2 <= 0.0 ? 1 : 0;

            ((UIElement)ucNewMessage).Visibility = ((Visibility)num3);
        }
Exemple #2
0
 public void InitializeComponent()
 {
     if (this._contentLoaded)
     {
         return;
     }
     this._contentLoaded = true;
     Application.LoadComponent((object)this, new Uri("/VKClient.Common;component/Market/Views/ProductPage.xaml", UriKind.Relative));
     this.ListBoxItemNavDotsStyle = (Style)this.FindName("ListBoxItemNavDotsStyle");
     this.rowDefinitionContent    = (RowDefinition)this.FindName("rowDefinitionContent");
     this.ucHeader          = (GenericHeaderUC)this.FindName("ucHeader");
     this.ucMoreActions     = (MoreActionsUC)this.FindName("ucMoreActions");
     this.viewportControl   = (ViewportControl)this.FindName("viewportControl");
     this.stackPanelContent = (StackPanel)this.FindName("stackPanelContent");
     this.canvasBackground  = (Canvas)this.FindName("canvasBackground");
     this.slideView         = (SlideView)this.FindName("slideView");
     this.listBoxNavDots    = (ListBox)this.FindName("listBoxNavDots");
     this.textBlockMetaData = (TextBlock)this.FindName("textBlockMetaData");
     this.gridAction        = (Grid)this.FindName("gridAction");
     this.ucCommentGeneric  = (CommentsGenericUC)this.FindName("ucCommentGeneric");
     this.ucNewMessage      = (NewMessageUC)this.FindName("ucNewMessage");
     this.ucFloatActions    = (FloatActionsUC)this.FindName("ucFloatActions");
 }