public void InitializeComponent() { if (this._contentLoaded) return; this._contentLoaded = true; Application.LoadComponent(this, new Uri("/VKClient.Groups;component/Management/Information/InformationPage.xaml", UriKind.Relative)); this.Header = (GenericHeaderUC)((FrameworkElement)this).FindName("Header"); this.Viewer = (ScrollViewer)((FrameworkElement)this).FindName("Viewer"); this.ViewerContent = (StackPanel)((FrameworkElement)this).FindName("ViewerContent"); this.TextBoxPanel = (TextBoxPanelControl)((FrameworkElement)this).FindName("TextBoxPanel"); }
public void InitializeComponent() { if (this._contentLoaded) { return; } this._contentLoaded = true; Application.LoadComponent(this, new Uri("/VKClient.Audio;component/AddEditAudioPage.xaml", UriKind.Relative)); this.Viewer = (ScrollViewer)base.FindName("Viewer"); this.ViewerContent = (StackPanel)base.FindName("ViewerContent"); this.TextBoxPanel = (TextBoxPanelControl)base.FindName("TextBoxPanel"); }
public void InitializeComponent() { if (this._contentLoaded) { return; } this._contentLoaded = true; Application.LoadComponent(this, new Uri("/VKClient.Groups;component/Management/ServicesPage.xaml", UriKind.Relative)); this.Header = (GenericHeaderUC)base.FindName("Header"); this.Viewer = (ScrollViewer)base.FindName("Viewer"); this.ViewerContent = (StackPanel)base.FindName("ViewerContent"); this.TextBoxPanel = (TextBoxPanelControl)base.FindName("TextBoxPanel"); }
public void InitializeComponent() { if (this._contentLoaded) { return; } this._contentLoaded = true; Application.LoadComponent(this, new Uri("/VKMessenger;component/Views/ChatEditPage.xaml", UriKind.Relative)); this.Header = (GenericHeaderUC)base.FindName("Header"); this.ContentList = (ExtendedLongListSelector)base.FindName("ContentList"); this.TitleBox = (TextBox)base.FindName("TitleBox"); this.TextBoxPanel = (TextBoxPanelControl)base.FindName("TextBoxPanel"); }
public void InitializeComponent() { if (this._contentLoaded) { return; } this._contentLoaded = true; Application.LoadComponent(this, new Uri("/VKClient.Groups;component/Management/Information/PlacementSelectionPage.xaml", UriKind.Relative)); this.Viewer = (ScrollViewer)base.FindName("Viewer"); this.ViewerContent = (StackPanel)base.FindName("ViewerContent"); this.Map = (Map)base.FindName("Map"); this.TextBoxPanel = (TextBoxPanelControl)base.FindName("TextBoxPanel"); }
public void InitializeComponent() { if (this._contentLoaded) { return; } this._contentLoaded = true; Application.LoadComponent(this, new Uri("/VKClient.Common;component/Gifts/Views/GiftSendPage.xaml", UriKind.Relative)); this.ucHeader = (GenericHeaderUC)base.FindName("ucHeader"); this.scrollViewer = (ScrollViewer)base.FindName("scrollViewer"); this.scrollViewerMessage = (ScrollViewer)base.FindName("scrollViewerMessage"); this.textBoxMessage = (TextBox)base.FindName("textBoxMessage"); this.textBlockWatermark = (TextBlock)base.FindName("textBlockWatermark"); this.textBoxPanel = (TextBoxPanelControl)base.FindName("textBoxPanel"); }
public void ForceFocusIfNeeded() { if (!this.IsFocused) { return; } ((Control)this.textBoxPost).Focus(); TextBoxPanelControl textBoxPanelControl = Enumerable.FirstOrDefault <DependencyObject>(((DependencyObject)FramePageUtils.CurrentPage).Descendants <TextBoxPanelControl>()) as TextBoxPanelControl; if (textBoxPanelControl == null) { return; } textBoxPanelControl.IgnoreNextLostGotFocus(); }
public void InitializeComponent() { if (this._contentLoaded) { return; } this._contentLoaded = true; Application.LoadComponent(this, new Uri("/VKClient.Common;component/CreateEditPollPage.xaml", UriKind.Relative)); this.LayoutRoot = (Grid)base.FindName("LayoutRoot"); this.ucHeader = (GenericHeaderUC)base.FindName("ucHeader"); this.scrollViewer = (ScrollViewer)base.FindName("scrollViewer"); this.stackPanel = (StackPanel)base.FindName("stackPanel"); this.textBoxQuestion = (TextBox)base.FindName("textBoxQuestion"); this.ucAddOption = (InlineAddButtonUC)base.FindName("ucAddOption"); this.textBoxPanel = (TextBoxPanelControl)base.FindName("textBoxPanel"); }
public void InitializeComponent() { if (this._contentLoaded) { return; } this._contentLoaded = true; Application.LoadComponent(this, new Uri("/VKClient.Common;component/MoneyTransfers/SendMoneyPage.xaml", UriKind.Relative)); this.Viewer = (ScrollViewer)base.FindName("Viewer"); this.ViewerContent = (Grid)base.FindName("ViewerContent"); this.bubbleTail = (Path)base.FindName("bubbleTail"); this.AmountPanel = (StackPanel)base.FindName("AmountPanel"); this.AmountBox = (TextBox)base.FindName("AmountBox"); this.AmountPlaceholder = (TextBlock)base.FindName("AmountPlaceholder"); this.CommentBox = (TextBox)base.FindName("CommentBox"); this.CommentPlaceholder = (TextBlock)base.FindName("CommentPlaceholder"); this.TextBoxPanel = (TextBoxPanelControl)base.FindName("TextBoxPanel"); }
public void InitializeComponent() { if (this._contentLoaded) { return; } this._contentLoaded = true; Application.LoadComponent(this, new Uri("/VKClient.Common;component/SettingsEditProfilePage.xaml", UriKind.Relative)); this.ucHeader = (GenericHeaderUC)base.FindName("ucHeader"); this.scrollViewer = (ScrollViewer)base.FindName("scrollViewer"); this.stackPanel = (StackPanel)base.FindName("stackPanel"); this.PhotoMenu = (ContextMenu)base.FindName("PhotoMenu"); this.datePicker = (MyDatePicker)base.FindName("datePicker"); this.textBoxPanel = (TextBoxPanelControl)base.FindName("textBoxPanel"); // this.rectangleGeometry = (RectangleGeometry)base.FindName("rectangleGeometry"); this.rectangleGeometry2 = (RectangleGeometry)base.FindName("rectangleGeometry2"); this.rectangleGeometry3 = (RectangleGeometry)base.FindName("rectangleGeometry3"); }
public void InitializeComponent() { if (this._contentLoaded) { return; } this._contentLoaded = true; Application.LoadComponent(this, new Uri("/VKClient.Common;component/NewPost.xaml", UriKind.Relative)); this.LayoutRoot = (Grid)base.FindName("LayoutRoot"); this.ucHeader = (GenericHeaderUC)base.FindName("ucHeader"); this.ContentPanel = (Grid)base.FindName("ContentPanel"); this.scroll = (ScrollViewer)base.FindName("scroll"); this.stackPanel = (StackPanel)base.FindName("stackPanel"); this.textBoxTopicTitle = (TextBox)base.FindName("textBoxTopicTitle"); this.textBlockWatermarkTitle = (TextBlock)base.FindName("textBlockWatermarkTitle"); this.ucNewPost = (NewPostUC)base.FindName("ucNewPost"); this.wallRepostContainer = (Border)base.FindName("wallRepostContainer"); this.checkBoxFriendsOnly = (CheckBox)base.FindName("checkBoxFriendsOnly"); this.textBoxPanel = (TextBoxPanelControl)base.FindName("textBoxPanel"); }
public void InitializeComponent() { if (this._contentLoaded) { return; } this._contentLoaded = true; Application.LoadComponent(this, new Uri("/VKClient.Common;component/UC/NewMessageUC.xaml", UriKind.Relative)); this.mentionPicker = (MentionPickerUC)base.FindName("mentionPicker"); this.panelReply = (StackPanel)base.FindName("panelReply"); this.checkBoxAsCommunity = (CheckBox)base.FindName("checkBoxAsCommunity"); this.textBlockReply = (TextBlock)base.FindName("textBlockReply"); this.ucReplyUser = (ReplyUserUC)base.FindName("ucReplyUser"); this.scrollNewMessage = (ScrollViewer)base.FindName("scrollNewMessage"); this.ucNewPost = (NewPostUC)base.FindName("ucNewPost"); this.borderEmoji = (Border)base.FindName("borderEmoji"); this.ellipseHasStickersUpdates = (Ellipse)base.FindName("ellipseHasStickersUpdates"); this.borderHoldToRecord = (Border)base.FindName("borderHoldToRecord"); this.borderSend = (Border)base.FindName("borderSend"); this.borderVoice = (Border)base.FindName("borderVoice"); this.ucAudioRecorder = (AudioRecorderUC)base.FindName("ucAudioRecorder"); this.ucStickersAutoSuggest = (StickersAutoSuggestUC)base.FindName("ucStickersAutoSuggest"); this.panelControl = (TextBoxPanelControl)base.FindName("panelControl"); }
public PostCommentsPage() { PhotoChooserTask photoChooserTask = new PhotoChooserTask(); int num = 1; photoChooserTask.ShowCamera = (num != 0); this._photoChooserTask = photoChooserTask; ApplicationBarMenuItem applicationBarMenuItem1 = new ApplicationBarMenuItem(); string goToOriginal = CommonResources.GoToOriginal; applicationBarMenuItem1.Text = goToOriginal; this._appBarMenuItemGoToOriginal = applicationBarMenuItem1; ApplicationBarMenuItem applicationBarMenuItem2 = new ApplicationBarMenuItem(); string pinPost = CommonResources.PinPost; applicationBarMenuItem2.Text = pinPost; this._appBarMenuItemPin = applicationBarMenuItem2; ApplicationBarMenuItem applicationBarMenuItem3 = new ApplicationBarMenuItem(); string unpinPost = CommonResources.UnpinPost; applicationBarMenuItem3.Text = unpinPost; this._appBarMenuItemUnpin = applicationBarMenuItem3; ApplicationBarIconButton applicationBarIconButton1 = new ApplicationBarIconButton(); Uri uri1 = new Uri("Resources/appbar.send.text.rest.png", UriKind.Relative); applicationBarIconButton1.IconUri = uri1; string commentsPageAppBarSend = CommonResources.PostCommentsPage_AppBar_Send; applicationBarIconButton1.Text = commentsPageAppBarSend; this._appBarButtonSend = applicationBarIconButton1; ApplicationBarIconButton applicationBarIconButton2 = new ApplicationBarIconButton(); Uri uri2 = new Uri("Resources/appbar.heart2.rest.png", UriKind.Relative); applicationBarIconButton2.IconUri = uri2; string commentsPageAppBarLike = CommonResources.PostCommentsPage_AppBar_Like; applicationBarIconButton2.Text = commentsPageAppBarLike; this._appBarButtonLike = applicationBarIconButton2; ApplicationBarIconButton applicationBarIconButton3 = new ApplicationBarIconButton(); Uri uri3 = new Uri("Resources/appbar.heart2.broken.rest.png", UriKind.Relative); applicationBarIconButton3.IconUri = uri3; string pageAppBarUnlike = CommonResources.PostCommentsPage_AppBar_Unlike; applicationBarIconButton3.Text = pageAppBarUnlike; this._appBarButtonUnlike = applicationBarIconButton3; ApplicationBarIconButton applicationBarIconButton4 = new ApplicationBarIconButton(); Uri uri4 = new Uri("Resources/appbar.smile.png", UriKind.Relative); applicationBarIconButton4.IconUri = uri4; string str = "emoji"; applicationBarIconButton4.Text = str; this._appBarButtonEmojiToggle = applicationBarIconButton4; ApplicationBarMenuItem applicationBarMenuItem4 = new ApplicationBarMenuItem(); string commentsPageAppBarShare = CommonResources.PostCommentsPage_AppBar_Share; applicationBarMenuItem4.Text = commentsPageAppBarShare; this._appBarMenuItemShare = applicationBarMenuItem4; ApplicationBarIconButton applicationBarIconButton5 = new ApplicationBarIconButton(); Uri uri5 = new Uri("Resources/attach.png", UriKind.Relative); applicationBarIconButton5.IconUri = uri5; string barAddAttachment = CommonResources.NewPost_AppBar_AddAttachment; applicationBarIconButton5.Text = barAddAttachment; this._appBarButtonAttachments = applicationBarIconButton5; ApplicationBarMenuItem applicationBarMenuItem5 = new ApplicationBarMenuItem(); string pageAppBarRefresh = CommonResources.PostCommentsPage_AppBar_Refresh; applicationBarMenuItem5.Text = pageAppBarRefresh; this._appBarMenuItemRefresh = applicationBarMenuItem5; ApplicationBarMenuItem applicationBarMenuItem6 = new ApplicationBarMenuItem(); string edit = CommonResources.Edit; applicationBarMenuItem6.Text = edit; this._appBarMenuItemEdit = applicationBarMenuItem6; ApplicationBarMenuItem applicationBarMenuItem7 = new ApplicationBarMenuItem(); string delete = CommonResources.Delete; applicationBarMenuItem7.Text = delete; this._appBarMenuItemDelete = applicationBarMenuItem7; ApplicationBarMenuItem applicationBarMenuItem8 = new ApplicationBarMenuItem(); string report = CommonResources.Report; applicationBarMenuItem8.Text = report; this._appBarMenuItemReport = applicationBarMenuItem8; this._dc = new DialogService(); this._de = new DelayedExecutor(200); this._de2 = new DelayedExecutor(550); // ISSUE: explicit constructor call //base.\u002Ector(); this.InitializeComponent(); this.Header.OnHeaderTap = (Action)(() => this.panel.ScrollToBottom(false)); this._adapter = new ViewportScrollableAreaAdapter(this.scroll); this.panel.InitializeWithScrollViewer((IScrollableArea)this._adapter, false); TextBoxPanelControl panelControl = this.ucNewMessage.PanelControl; EventHandler <bool> eventHandler = (EventHandler <bool>)Delegate.Combine((Delegate)panelControl.IsOpenedChanged, (Delegate) new EventHandler <bool>(this.PanelIsOpenedChanged)); panelControl.IsOpenedChanged = eventHandler; this.RegisterForCleanup((IMyVirtualizingPanel)this.panel); this.panel.LoadedHeightDownwards = this.panel.LoadedHeightDownwardsNotScrolling = 1600.0; this.BuildAppBar(); ((UIElement)this.ucNewMessage.ReplyUserUC).Tap += (new EventHandler <System.Windows.Input.GestureEventArgs>(this.Button_Click_1)); this.ucMoreActions.SetBlue(); this.ucMoreActions.TapCallback = (Action)(() => { WallPostItem wallPostItem = this.PostCommentsVM.WallPostItem; if (wallPostItem == null) { return; } ContextMenu menu = ContextMenuHelper.CreateMenu(wallPostItem.GenerateMenuItems()); ContextMenuService.SetContextMenu((DependencyObject)this.ucMoreActions, menu); menu.IsOpen = true; }); this.ucNewMessage.OnAddAttachTap = new Action(this.AddAttachTap); this.ucNewMessage.OnSendTap = (Action)(() => this._appBarButtonSend_Click(null, null)); this.ucNewMessage.UCNewPost.OnImageDeleteTap = (Action <object>)(sender => { FrameworkElement frameworkElement = sender as FrameworkElement; if (frameworkElement != null) { this._commentVM.OutboundAttachments.Remove(frameworkElement.DataContext as IOutboundAttachment); } this.UpdateAppBar(); }); this.ucNewMessage.UCNewPost.TextBlockWatermarkText.Text = CommonResources.Comment; // ISSUE: method pointer this.ucNewMessage.TextBoxNewComment.TextChanged += (new TextChangedEventHandler(this.TextBoxNewComment_TextChanged)); Binding binding = new Binding("OutboundAttachments"); ((FrameworkElement)this.ucNewMessage.ucNewPost.ItemsControlAttachments).SetBinding((DependencyProperty)ItemsControl.ItemsSourceProperty, binding); this.scroll.BindViewportBoundsTo((FrameworkElement)this.scrollableGrid); ((ChooserBase <PhotoResult>) this._photoChooserTask).Completed += (new EventHandler <PhotoResult>(this._photoChooserTask_Completed)); EventAggregator.Current.Subscribe(this); }