public void InitializeComponent()
 {
     if (this._contentLoaded)
     {
         return;
     }
     this._contentLoaded = true;
     Application.LoadComponent((object)this, new Uri("/VKClient.Groups;component/GroupDiscussionPage.xaml", UriKind.Relative));
     this.LayoutRoot      = (Grid)base.FindName("LayoutRoot");
     this.scroll          = (ViewportControl)base.FindName("scroll");
     this.scrollablePanel = (StackPanel)base.FindName("scrollablePanel");
     this.panel           = (MyVirtualizingPanel2)base.FindName("panel");
     this.newCommentUC    = (NewMessageUC)base.FindName("newCommentUC");
     this.Header          = (GenericHeaderUC)base.FindName("Header");
     this.ucPullToRefresh = (PullToRefreshUC)base.FindName("ucPullToRefresh");
 }
 public void InitializeComponent()
 {
     if (this._contentLoaded)
     {
         return;
     }
     this._contentLoaded = true;
     Application.LoadComponent(this, new Uri("/VKClient.Video;component/VideoCommentsPage.xaml", UriKind.Relative));
     this.scroll            = (ViewportControl)base.FindName("scroll");
     this.stackPanel        = (StackPanel)base.FindName("stackPanel");
     this.canvasBackground  = (Canvas)base.FindName("canvasBackground");
     this.textBlockMetaData = (TextBlock)base.FindName("textBlockMetaData");
     this.ucCommentGeneric  = (CommentsGenericUC)base.FindName("ucCommentGeneric");
     this.ucNewMessage      = (NewMessageUC)base.FindName("ucNewMessage");
     this.ucMoreActions     = (MoreActionsUC)base.FindName("ucMoreActions");
 }
Beispiel #3
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);
        }
Beispiel #4
0
 public void InitializeComponent()
 {
     if (this._contentLoaded)
     {
         return;
     }
     this._contentLoaded = true;
     Application.LoadComponent(this, new Uri("/VKClient.Common;component/PostCommentsPage.xaml", UriKind.Relative));
     this.LayoutRoot      = (Grid)base.FindName("LayoutRoot");
     this.scroll          = (ViewportControl)base.FindName("scroll");
     this.scrollableGrid  = (StackPanel)base.FindName("scrollableGrid");
     this.panel           = (MyVirtualizingPanel2)base.FindName("panel");
     this.ucNewMessage    = (NewMessageUC)base.FindName("ucNewMessage");
     this.Header          = (GenericHeaderUC)base.FindName("Header");
     this.ucPullToRefresh = (PullToRefreshUC)base.FindName("ucPullToRefresh");
     this.ucMoreActions   = (MoreActionsUC)base.FindName("ucMoreActions");
 }
 public void InitializeComponent()
 {
     if (this._contentLoaded)
     {
         return;
     }
     this._contentLoaded = true;
     Application.LoadComponent(this, new Uri("/VKClient.Photos;component/PhotoCommentsPage.xaml", UriKind.Relative));
     this.LayoutRoot          = (Grid)base.FindName("LayoutRoot");
     this.scroll              = (ViewportControl)base.FindName("scroll");
     this.stackPanel          = (StackPanel)base.FindName("stackPanel");
     this.UserHeader          = (UserOrGroupHeaderUC)base.FindName("UserHeader");
     this.image               = (Image)base.FindName("image");
     this.textBlockImageSaved = (TextBlock)base.FindName("textBlockImageSaved");
     this.stackPanelInfo      = (StackPanel)base.FindName("stackPanelInfo");
     this.textPhotoText       = (RichTextBox)base.FindName("textPhotoText");
     this.textTags            = (RichTextBox)base.FindName("textTags");
     this.ucCommentGeneric    = (CommentsGenericUC)base.FindName("ucCommentGeneric");
     this.textBlockError      = (TextBlock)base.FindName("textBlockError");
     this.ucNewMessage        = (NewMessageUC)base.FindName("ucNewMessage");
     this.Header              = (GenericHeaderUC)base.FindName("Header");
     this.ucMoreActions       = (MoreActionsUC)base.FindName("ucMoreActions");
 }
Beispiel #6
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");
 }