コード例 #1
0
ファイル: MainPage.xaml.cs プロジェクト: pwattjaidee/Thaibird
        //public bool _firstTime = true;
        public MainPage()
        {
            InitializeComponent();

            #region Application Bar
            ApplicationBar = new ApplicationBar { IsMenuEnabled = true, IsVisible = true, Opacity = .9 };

            var tweet = new ApplicationBarIconButton(new Uri("/Images/tweet.png", UriKind.Relative));
            tweet.Text = "tweet";
            tweet.Click += new EventHandler(btnTweetButton_Click);

            var refresh = new ApplicationBarIconButton(new Uri("/Images/refresh.png", UriKind.Relative));
            refresh.Text = "refresh";
            refresh.Click += new EventHandler(btnRefreshButton_Click);

            //var accountSetting = new ApplicationBarMenuItem();
            //accountSetting.Text = "Change account";
            //accountSetting.Click += new EventHandler(btnAccSetting_Click);

            var support = new ApplicationBarMenuItem();
            support.Text = "About";
            support.Click += new EventHandler(support_Click);

            ApplicationBar.Buttons.Add(tweet);
            ApplicationBar.Buttons.Add(refresh);
            //ApplicationBar.MenuItems.Add(accountSetting);
            ApplicationBar.MenuItems.Add(support);

            #endregion

            // Set the data context of the listbox control to the sample data
            DataContext = App.ViewModel;
            Loaded += MainPage_Loaded;
        }
		//----------------------------------------------------------------------
		#endregion
		//----------------------------------------------------------------------

		
		//----------------------------------------------------------------------
		#region --- Methods ---
		//----------------------------------------------------------------------
		/// <summary>
		/// Builds the application bar.
		/// </summary>
		private void BuildApplicationBar()
		{
			if (ApplicationBar == null)
			{
				ApplicationBar = new ApplicationBar();
			}

			var addButton = new ApplicationBarIconButton(new Uri("/Images/ApplicationBar/GroupManagement/add.png", UriKind.Relative));
			addButton.Text = AppResources.UI_GroupManagement_ApplicationBar_Add;
			addButton.Click += Add;

			_deleteButton = new ApplicationBarIconButton(new Uri("/Images/ApplicationBar/GroupManagement/delete.png", UriKind.Relative));
			_deleteButton.Text = AppResources.UI_GroupManagement_ApplicationBar_Delete;
			_deleteButton.Click += Delete;

			_deleteAllMenuItem = new ApplicationBarMenuItem();
			_deleteAllMenuItem.Text = AppResources.UI_GroupManagement_ApplicationBar_DeleteAll;
			_deleteAllMenuItem.Click += DeleteAll;

			ApplicationBar.Buttons.Add(addButton);
			ApplicationBar.Buttons.Add(_deleteButton);
			ApplicationBar.MenuItems.Add(_deleteAllMenuItem);

			UpdateApplicationBarItems();
		}
コード例 #3
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            // Add an Application Bar with a 'setting menu item.
            ApplicationBar = new ApplicationBar();
            ApplicationBar.IsMenuEnabled = true;
            ApplicationBar.IsVisible = true;
            ApplicationBar.Opacity = 1.0;
            ApplicationBar.Mode = ApplicationBarMode.Minimized;

            var settingsItem = new ApplicationBarIconButton(new Uri("/Images/appbar.feature.settings.rest.png", UriKind.Relative));
            var helpItem = new ApplicationBarIconButton(new Uri("/Images/appbar.questionmark.rest.png", UriKind.Relative));
            var shareItem = new ApplicationBarIconButton(new Uri("/Images/share.png", UriKind.Relative));
            var rateItem = new ApplicationBarIconButton(new Uri("/Images/appbar.favs.rest.png", UriKind.Relative));

            settingsItem.Text = "settings";
            helpItem.Text = "help";
            shareItem.Text = "share";
            rateItem.Text = "rate";

            settingsItem.Click += SettingsClick;
            helpItem.Click += HelpClick;
            shareItem.Click += TwitterItemOnClick;
            rateItem.Click += RateItemOnClick;

            ApplicationBar.Buttons.Add(shareItem);
            ApplicationBar.Buttons.Add(settingsItem);
            ApplicationBar.Buttons.Add(helpItem);
            ApplicationBar.Buttons.Add(rateItem);

            Ad1.ApplicationId = "xxxxxx";
            Ad1.AdUnitId = "xxxxxx";
        }
コード例 #4
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Glicious;component/SettingsPage.xaml", System.UriKind.Relative));
     this.LayoutRoot   = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel   = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.Glicious     = ((System.Windows.Controls.TextBlock)(this.FindName("Glicious")));
     this.PgTitle      = ((System.Windows.Controls.TextBlock)(this.FindName("PgTitle")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.grad2start   = ((System.Windows.Media.GradientStop)(this.FindName("grad2start")));
     this.grad2stop    = ((System.Windows.Media.GradientStop)(this.FindName("grad2stop")));
     this.veganBox     = ((System.Windows.Controls.CheckBox)(this.FindName("veganBox")));
     this.ovolactoBox  = ((System.Windows.Controls.CheckBox)(this.FindName("ovolactoBox")));
     this.gfBox        = ((System.Windows.Controls.CheckBox)(this.FindName("gfBox")));
     this.passoverBox  = ((System.Windows.Controls.CheckBox)(this.FindName("passoverBox")));
     this.image1       = ((System.Windows.Controls.Image)(this.FindName("image1")));
     this.textBlock1   = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock1")));
     this.gradStart    = ((System.Windows.Media.GradientStop)(this.FindName("gradStart")));
     this.gradStop     = ((System.Windows.Media.GradientStop)(this.FindName("gradStop")));
     this.appBar       = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("appBar")));
     this.save         = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("save")));
     this.settings     = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("settings")));
 }
コード例 #5
0
        // Constructor
        public MainPage()
        {
              InitializeComponent();


            // Set the data context of the listbox control to the sample data
            DataContext = App.ViewModel;

            //// Add a new background Image
            BitmapImage bitmapImage = new BitmapImage(new Uri("PanoramaBackground.png", UriKind.Relative));
            ImageBrush imageBrush = new ImageBrush();
            imageBrush.ImageSource = bitmapImage;
            PanoControl.Background = imageBrush;
      
            ApplicationBar = new ApplicationBar();
          
           
            //adding an iconbutton
            ApplicationBarIconButton About = new ApplicationBarIconButton();
            About.Text = AppResources.About;
            About.Click += About_Click;
            About.IconUri = new Uri("/Assets/Icons/appbar.information.circle.png", UriKind.Relative);

            //adding another icon button
            ApplicationBarIconButton Exit = new ApplicationBarIconButton();
            Exit.Text = AppResources.Exit;
            Exit.Click += Exit_Click;
            Exit.IconUri = new Uri("/Assets/Icons/appbar.stop.png", UriKind.Relative);

            //ApplicationBar.Buttons.Add(Home);
            ApplicationBar.Buttons.Add(About);
            ApplicationBar.Buttons.Add(Exit);


        }
コード例 #6
0
        public EditPagePage()
        {
            InitializeComponent();

            _localizedStrings = App.Current.Resources["StringTable"] as StringTable;

            ApplicationBar = new ApplicationBar();
            ApplicationBar.BackgroundColor = (Color)App.Current.Resources["AppbarBackgroundColor"];
            ApplicationBar.ForegroundColor = (Color)App.Current.Resources["WordPressGrey"];

            _saveIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.save.png", UriKind.Relative));
            _saveIconButton.Text = _localizedStrings.ControlsText.Save;
            _saveIconButton.Click += OnSaveButtonClick;
            ApplicationBar.Buttons.Add(_saveIconButton);

            _mediaUploadRPCs = new List<UploadFileRPC>();

            Loaded += OnPageLoaded;

            photoChooserTask = new PhotoChooserTask();
            photoChooserTask.ShowCamera = true;
            photoChooserTask.Completed += new EventHandler<PhotoResult>(OnChoosePhotoTaskCompleted);

            uploadImagesAsGalleryCheckbox.Visibility = Visibility.Collapsed;
            gallerySettingsButton.Visibility = Visibility.Collapsed;
        }
 private void BuildLocalizedApplicationBar()
 {
     ApplicationBar = new ApplicationBar();
     ApplicationBarMenuItem appBarMenuItem = new ApplicationBarMenuItem("Visitor");
     appBarMenuItem.Click += appBarMenuItem_Click;
     ApplicationBar.MenuItems.Add(appBarMenuItem);
 }
コード例 #8
0
        public MainPage()
        {
            InitializeComponent();

            ApplicationBar = new ApplicationBar();

            var textureButton = new ApplicationBarIconButton(new Uri("/Assets/Icons/texture.png", UriKind.Relative))
            {
                Text = AppResources.MainPage_TextureButton
            };
            textureButton.Click += TextureButton_Click;

            ApplicationBar.Buttons.Add(textureButton);

            var previousButton = new ApplicationBarIconButton(new Uri("/Assets/Icons/previous.png", UriKind.Relative))
            {
                Text = AppResources.MainPage_PreviousEffectButton
            };
            previousButton.Click += PreviousButton_Click;

            ApplicationBar.Buttons.Add(previousButton);

            var nextButton = new ApplicationBarIconButton(new Uri("/Assets/Icons/next.png", UriKind.Relative))
            {
                Text = AppResources.MainPage_NextEffectButton
            };
            nextButton.Click += NextButton_Click;

            ApplicationBar.Buttons.Add(nextButton);

            var aboutMenuItem = new ApplicationBarMenuItem {Text = AppResources.MainPage_AboutPageButton};
            aboutMenuItem.Click += AboutMenuItem_Click;

            ApplicationBar.MenuItems.Add(aboutMenuItem);
        }
コード例 #9
0
        private void InitializeApplicationBar()
        {
            ApplicationBar = new ApplicationBar();

            _playButton = new ApplicationBarIconButton();
            _playButton.IconUri = new Uri("/Assets/appbar.play.png", UriKind.Relative);
            _playButton.Text = "play";
            _playButton.Click += new EventHandler(PlayButton_Click);
            ApplicationBar.Buttons.Add(_playButton);

            _alignButton = new ApplicationBarIconButton();
            _alignButton.IconUri = new Uri(@"Assets/appbar.align.disabled.png", UriKind.Relative);
            _alignButton.Text = "align";
            _alignButton.Click += new EventHandler(AlignButton_Click);
            ApplicationBar.Buttons.Add(_alignButton);

            _frameButton = new ApplicationBarIconButton();
            _frameButton.IconUri = new Uri(@"Assets/appbar.frame.disabled.png", UriKind.Relative);
            _frameButton.Text = "frame";
            _frameButton.Click += new EventHandler(FrameButton_Click);
            ApplicationBar.Buttons.Add(_frameButton);

            _saveButton = new ApplicationBarIconButton();
            _saveButton.IconUri = new Uri(@"Assets/appbar.save.png", UriKind.Relative);
            _saveButton.Text = "save";
            _saveButton.Click += new EventHandler(SaveButton_Click);
            ApplicationBar.Buttons.Add(_saveButton);

            ApplicationBarMenuItem aboutMenuItem = new ApplicationBarMenuItem();
            aboutMenuItem.Text = "about";
            aboutMenuItem.Click += (s, e) => NavigationService.Navigate(new Uri("/AboutPage.xaml", UriKind.Relative));
            ApplicationBar.MenuItems.Add(aboutMenuItem);

        }
コード例 #10
0
ファイル: WordPage.xaml.cs プロジェクト: jojozhuang/Projects
        public WordPage()
        {
            InitializeComponent();

            ApplicationBar = new ApplicationBar();
            ApplicationBar.IsMenuEnabled = true;
            ApplicationBar.IsVisible = true;
            ApplicationBar.Opacity = 1.0;

            //ApplicationBarIconButton previousButton = new ApplicationBarIconButton(new Uri("/Images/back.png", UriKind.Relative));
            //previousButton.Text = "previous";
            //previousButton.Click += new EventHandler(previousButton_Click);

            ApplicationBarIconButton backButton = new ApplicationBarIconButton(new Uri("/Images/back.png", UriKind.Relative));
            backButton.Text = "back";
            backButton.Click += new EventHandler(backButton_Click);

            //ApplicationBarIconButton nextButton = new ApplicationBarIconButton(new Uri("/Images/next.png", UriKind.Relative));
            //nextButton.Text = "next";
            //nextButton.Click += new EventHandler(nextButton_Click);

            //ApplicationBar.Buttons.Add(previousButton);
            ApplicationBar.Buttons.Add(backButton);
            //ApplicationBar.Buttons.Add(nextButton);
        }
コード例 #11
0
ファイル: MainPage.xaml.cs プロジェクト: kneefer/DrawOnMe
        private void BuildLocalizedApplicationBar()
        {
            ApplicationBar = new ApplicationBar();

            ApplicationBarIconButton undoButton = new ApplicationBarIconButton(new Uri("/Assets/back.png", UriKind.Relative)) { Text = AppResources.UndoAppBar };
            undoButton.Click += undoButton_Click;
            ApplicationBar.Buttons.Add(undoButton);

            ApplicationBarIconButton clearContentButton = new ApplicationBarIconButton(new Uri("/Assets/close.png", UriKind.Relative)) { Text = AppResources.ClearAppBar };
            clearContentButton.Click += clearContentButton_Click;
            ApplicationBar.Buttons.Add(clearContentButton);

            ApplicationBarIconButton openButton = new ApplicationBarIconButton(new Uri("/Assets/folder.png", UriKind.Relative)) { Text = AppResources.OpenAppBar };
            openButton.Click += openButton_Click;
            ApplicationBar.Buttons.Add(openButton);

            ApplicationBarIconButton saveButton = new ApplicationBarIconButton(new Uri("/Assets/save.png", UriKind.Relative)) { Text = AppResources.SaveAppBar };
            saveButton.Click += saveButton_Click;
            ApplicationBar.Buttons.Add(saveButton);

            ApplicationBarMenuItem rateMenuItem = new ApplicationBarMenuItem(AppResources.RateAppBar);
            rateMenuItem.Click += rateButton_Click;
            ApplicationBar.MenuItems.Add(rateMenuItem);

            ApplicationBarMenuItem infoMenuItem = new ApplicationBarMenuItem(AppResources.InfoAppBar);
            infoMenuItem.Click += infoMenuItem_Click;
            ApplicationBar.MenuItems.Add(infoMenuItem);
        }
        public ApplicationBar CreateDefaultApplicationBar()
        {
            ApplicationBar retAppBar = new ApplicationBar();
              retAppBar.IsVisible = true;
              retAppBar.IsMenuEnabled = true;
              retAppBar.Opacity = 1;
              retAppBar.ForegroundColor = Prez.ApplicationForegroundColor;
              retAppBar.BackgroundColor = Prez.ApplicationBackgroundColor;

              //add menu items in order that you want them to appear

              //Feed Items Pages (MainPage)
              ApplicationBarIconButton btnFeedItemsPage = new ApplicationBarIconButton(Prez.FeedItemsPageApplicationBarIconUri);
              btnFeedItemsPage.Text = Prez.FeedItemsPageApplicationBarText;
              btnFeedItemsPage.Click += new EventHandler(btnFeedItemsPage_Click);
              retAppBar.Buttons.Add(btnFeedItemsPage);

              //view browser page
              ApplicationBarIconButton btnBrowserPage = new ApplicationBarIconButton(Prez.BrowserPageApplicationBarIconUri);
              btnBrowserPage.Text = Prez.BrowserPageApplicationBarText;
              btnBrowserPage.Click += new EventHandler(btnBrowserPage_Click);
              retAppBar.Buttons.Add(btnBrowserPage);

              //view Feed Sources Page
              ApplicationBarIconButton btnFeedSourcesPage = new ApplicationBarIconButton(Prez.FeedSourcesPageApplicationBarIconUri);
              btnFeedSourcesPage.Text = Prez.FeedSourcesPageApplicationBarText;
              btnFeedSourcesPage.Click += new EventHandler(btnFeedSourcesPage_Click);
              retAppBar.Buttons.Add(btnFeedSourcesPage);

              return retAppBar;
        }
コード例 #13
0
        private void UpdateAppBar()
        {
            if (_doneBar == null)
            {
                _doneBar     = ThemeManager.CreateApplicationBar();
                _markDoneBar = new Microsoft.Phone.Shell.ApplicationBar();

                AppBarHelper.AddButton(_markDoneBar, "mark done", OnAppBarItemClick, AppBarIcon.OK);
                AppBarHelper.AddButton(_doneBar, "undo this", OnAppBarItemClick, AppBarIcon.Cancel);

                AppBarHelper.AddButton(_doneBar, "save", OnAppBarItemClick, AppBarIcon.Save);
                AppBarHelper.AddButton(_markDoneBar, "save", OnAppBarItemClick, AppBarIcon.Save);

                // punted from v3.0!
                //AppBarHelper.AddButton(_doneBar, "share", OnAppBarItemClick, "tbd");
                //AppBarHelper.AddButton(_markDoneBar, "share", OnAppBarItemClick, "tbd");

                AppBarHelper.AddButton(_doneBar, "refresh", OnAppBarItemClick, AppBarIcon.Refresh);
                AppBarHelper.AddButton(_markDoneBar, "refresh", OnAppBarItemClick, AppBarIcon.Refresh);
            }

            if (Item != null)
            {
                // was _list before...

                ApplicationBar = Item.IsDone ? _doneBar : _markDoneBar;
            }
            else
            {
                ApplicationBar = null;
            }
        }
コード例 #14
0
        private void BuildLocalizedApplicationBar()
        {
            ApplicationBar = new ApplicationBar();

            ApplicationBarIconButton sendButton = new ApplicationBarIconButton(new Uri("/Assets/AppBar/feature.email.png", UriKind.Relative));
            sendButton.Text = AppResources.SendButtonText;
            ApplicationBar.Buttons.Add(sendButton);
            sendButton.Click += Send;

            // TODO: Need paperclip icon
            ApplicationBarIconButton attachButton = new ApplicationBarIconButton(new Uri("/Assets/AppBar/attach.png", UriKind.Relative));
            attachButton.Text = AppResources.AttachButtonText;
            ApplicationBar.Buttons.Add(attachButton);
            attachButton.Click += Attach;

            ApplicationBarIconButton discardButton = new ApplicationBarIconButton(new Uri("/Assets/AppBar/cancel.png", UriKind.Relative));
            discardButton.Text = AppResources.DiscardButtonText;
            ApplicationBar.Buttons.Add(discardButton);
            discardButton.Click += Discard;

            ApplicationBarIconButton dictateButton = new ApplicationBarIconButton(new Uri("/Assets/AppBar/microphone.png", UriKind.Relative));
            dictateButton.Text = AppResources.DictateButtonText;
            ApplicationBar.Buttons.Add(dictateButton);
            dictateButton.Click += Dictate;

            ApplicationBarMenuItem labelMenuItem = new ApplicationBarMenuItem(AppResources.LabelItemText);
            ApplicationBar.MenuItems.Add(labelMenuItem);
            labelMenuItem.Click += LabelClick;
        }
コード例 #15
0
ファイル: MainPage.xaml.cs プロジェクト: LaoQi/kukukuclient
        // 构造函数
        public MainPage()
        {
            InitializeComponent();
            ApplicationBar = new ApplicationBar();
            categoryBtn = new ApplicationBarIconButton(new Uri("/Assets/AppBar/folder.png", UriKind.Relative));
            categoryBtn.Text = "板块";
            categoryBtn.Click += new EventHandler(Categroy_Click);
            newpostBtn = new ApplicationBarIconButton(new Uri("/Assets/AppBar/add.png", UriKind.Relative));
            newpostBtn.Text = "发串";
            newpostBtn.IsEnabled = false;
            jumptoBtn = new ApplicationBarIconButton(new Uri("/Assets/AppBar/next.png", UriKind.Relative));
            jumptoBtn.Text = "跳转";
            jumptoBtn.IsEnabled = false;
            refreshBtn = new ApplicationBarIconButton(new Uri("/Assets/AppBar/refresh.png", UriKind.Relative));
            refreshBtn.Text = "刷新";
            refreshBtn.Click += new EventHandler(RefreshItem_Click);

            saveimageBtn = new ApplicationBarIconButton(new Uri("/Assets/AppBar/save.png", UriKind.Relative));
            saveimageBtn.Text = "保存";
            saveimageBtn.Click += new EventHandler(SaveImage_Click);
            shareimageBtn = new ApplicationBarIconButton(new Uri("/Assets/AppBar/share.png", UriKind.Relative));
            shareimageBtn.Text = "分享";
            shareimageBtn.Click += new EventHandler(ShareImage_Click);

            settingMenu = new ApplicationBarMenuItem("设置");
            aboutMenu = new ApplicationBarMenuItem("关于");

            ChangeAppBar(PageState.Categroy);
            ApplicationBar.Mode = ApplicationBarMode.Minimized;

            ApplicationBar.MenuItems.Add(settingMenu);
            ApplicationBar.MenuItems.Add(aboutMenu);
        }
コード例 #16
0
ファイル: ViewEdit.xaml.cs プロジェクト: virtualcca/My_Note
        //生成AppBar
        private void BuildLocalizedApplicationBar()
        {
            // 将页面的 ApplicationBar 设置为 ApplicationBar 的新实例。
            ApplicationBar = new ApplicationBar();
            ApplicationBar.Opacity = 0.78;
            ApplicationBar.IsVisible = true;
            ApplicationBar.IsMenuEnabled = true;

            // 创建新按钮并将文本值设置为 AppResources 中的本地化字符串。
            ApplicationBarIconButton SaveAddAppBarButton = new ApplicationBarIconButton(new Uri("/Images/appbar.save.rest.png", UriKind.Relative));
            SaveAddAppBarButton.Text = AppResources.ViewEditPageAppbarButtonSave;
            SaveAddAppBarButton.Click += AppBar_Save_Click;
            ApplicationBar.Buttons.Add(SaveAddAppBarButton);

            // 创建新按钮并将文本值设置为 AppResources 中的本地化字符串。
            ApplicationBarIconButton EditAddAppBarButton = new ApplicationBarIconButton(new Uri("/Images/appbar.edit.rest.png", UriKind.Relative));
            EditAddAppBarButton.Text = AppResources.ViewEditPageAppbarButtonEdit;
            EditAddAppBarButton.Click += AppBar_Edit_Click;
            ApplicationBar.Buttons.Add(EditAddAppBarButton);

            // 创建新按钮并将文本值设置为 AppResources 中的本地化字符串。
            ApplicationBarIconButton DeleteAddAppBarButton = new ApplicationBarIconButton(new Uri("/Images/appbar.delete.rest.png", UriKind.Relative));
            DeleteAddAppBarButton.Text = AppResources.ViewEditPageAppbarButtonDelete;
            DeleteAddAppBarButton.Click += Appbar_Delete_Click;
            ApplicationBar.Buttons.Add(DeleteAddAppBarButton);


        } 
コード例 #17
0
        private void SetupAppBar_TypeFrequency()
        {
            ApplicationBar = new ApplicationBar();
            ApplicationBar.IsVisible = true;

            ApplicationBarIconButton save = new ApplicationBarIconButton();
            save.IconUri = new Uri("/Assets/icons/Dark/save.png", UriKind.Relative);
            save.Text = AppResources.AppBarButtonSave;
            ApplicationBar.Buttons.Add(save);
            save.Click += new EventHandler(Save_Click);

            ApplicationBarIconButton saveContinute = new ApplicationBarIconButton();
            saveContinute.IconUri = new Uri("/Assets/icons/Dark/refresh.png", UriKind.Relative);
            saveContinute.Text = AppResources.AppBarButtonContinue;
            ApplicationBar.Buttons.Add(saveContinute);
            save.Click += new EventHandler(Continue_Click);

            ApplicationBarIconButton delete = new ApplicationBarIconButton();
            delete.IconUri = new Uri("/Assets/icons/Dark/delete.png", UriKind.Relative);
            delete.Text = AppResources.AppBarButtonDelete;
            ApplicationBar.Buttons.Add(delete);
            save.Click += new EventHandler(Delete_Click);

            ApplicationBarIconButton add = new ApplicationBarIconButton();
            add.IconUri = new Uri("/Assets/icons/Dark/add.png", UriKind.Relative);
            add.Text = AppResources.AppBarButtonAdd;
            ApplicationBar.Buttons.Add(add);
            add.Click += new EventHandler(Add_Click);

            ApplicationBarMenuItem mainMenu = new ApplicationBarMenuItem();
            mainMenu.Text = AppResources.AppBarButtonMainMenu;
            ApplicationBar.MenuItems.Add(mainMenu);
            mainMenu.Click += new EventHandler(MainMenu_Click);

        }
コード例 #18
0
ファイル: MainPage.xaml.cs プロジェクト: BrianLima/Helix
        // Sample code for building a localized ApplicationBar
        private void BuildLocalizedApplicationBar()
        {
            // Set the page's ApplicationBar to a new instance of ApplicationBar.
            ApplicationBar = new ApplicationBar();

            // Create a new button and set the text value to the localized string from AppResources.
            ApplicationBarIconButton appBarButtonHear = new ApplicationBarIconButton(new Uri("/Images/QuestionMark.png", UriKind.Relative));
            appBarButtonHear.Text = "Hear";
            appBarButtonHear.Click += appBarButton_Click;
            ApplicationBar.Buttons.Add(appBarButtonHear);

            ApplicationBarIconButton appBarButtonShare = new ApplicationBarIconButton(new Uri("/Images/share.png", UriKind.Relative));
            appBarButtonShare.Text = "Share";
            appBarButtonShare.Click += appBarButtonShare_Click;
            ApplicationBar.Buttons.Add(appBarButtonShare);

            ApplicationBarIconButton appBarButtonReview = new ApplicationBarIconButton(new Uri("/Images/favs.png", UriKind.Relative));
            appBarButtonReview.Text = "Review";
            appBarButtonReview.Click += appBarButtonReview_Click;
            ApplicationBar.Buttons.Add(appBarButtonReview);

            ApplicationBarIconButton appBarButtonSpeech = new ApplicationBarIconButton(new Uri("/Images/microphone.png", UriKind.Relative));
            appBarButtonSpeech.Text = "Speech";
            appBarButtonSpeech.Click += appBarButtonSpeech_Click;
            ApplicationBar.Buttons.Add(appBarButtonSpeech);

            // Create a new menu item with the localized string from AppResources.
            ApplicationBarMenuItem appBarMenuItem = new ApplicationBarMenuItem(AppResources.AppBarMenuItemText);
            appBarMenuItem.Text = "About";
            appBarMenuItem.Click += appBarMenuItem_Click; 
            ApplicationBar.MenuItems.Add(appBarMenuItem);
        }
コード例 #19
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();
            startTime = DateTime.Now;
            if (Debugger.IsAttached)
            {
                DebugPanel.Visibility = Visibility.Visible;

                ApplicationBar = new ApplicationBar();
                ApplicationBar.Mode = ApplicationBarMode.Minimized;
                ApplicationBar.Opacity = 1.0;
                ApplicationBar.IsVisible = true;
                ApplicationBar.IsMenuEnabled = true;

                // Adding a menu item
                ApplicationBarMenuItem myMenuItem = new ApplicationBarMenuItem();
                myMenuItem.Text = "open debugger";
                myMenuItem.Click += toggleDebugger;
                ApplicationBar.MenuItems.Add(myMenuItem);
                // Adding a menu item
                ApplicationBarMenuItem minDebugger = new ApplicationBarMenuItem();
                minDebugger.Text = "minimize debugger";
                minDebugger.Click += minDebug;
                ApplicationBar.MenuItems.Add(minDebugger);
            }
        }
コード例 #20
0
 private void InitAppBar()
 {
     var theme = ThemeManager.Instance.Theme;
     ApplicationBar = new ApplicationBar();
     ApplicationBar.IsMenuEnabled = false;
     ApplicationBarGenerator.Instance.CreateDouble(ApplicationBar, "/Assets/Images/" + theme + "/appbar.share.png", Msg.Save, AskToShare);
 }
コード例 #21
0
ファイル: StopWatchPage.xaml.cs プロジェクト: ZoyaSaeed/MFD
        // Sample code for building a localized ApplicationBar
        private void BuildLocalizedApplicationBar()
        {
            ApplicationBar = new ApplicationBar();
            ApplicationBar.BackgroundColor = Color.FromArgb(255, 7, 4, 25);
            ApplicationBar.ForegroundColor = Color.FromArgb(255, 255, 255, 255); ;

            #region | Pin Tile AppBar Icon |

            ApplicationBarIconButton PinTile = new ApplicationBarIconButton(new Uri("/Icons/Dark/Pin.png", UriKind.Relative));
            PinTile.Text = "Pin";
            ApplicationBar.Buttons.Add(PinTile);
            PinTile.Click += new EventHandler(PinTile_Click);

            #endregion

            #region | StartStop appBarIcon|

            ApplicationBarIconButton PlayPause = new ApplicationBarIconButton(new Uri("/Icons/Dark/transport.play.png", UriKind.Relative));
            PlayPause.Text = "Start";
            ApplicationBar.Buttons.Add(PlayPause);
            PlayPause.Click += new EventHandler(PlayPause_Click);

            #endregion

            #region | Settings appBarIcon|

            ApplicationBarIconButton Settings = new ApplicationBarIconButton(new Uri("/Icons/Dark/appbar.feature.settings.rest.png", UriKind.Relative));
            Settings.Text = "Settings";
            ApplicationBar.Buttons.Add(Settings);
            Settings.Click += new EventHandler(Settings_Click);

            #endregion
           
        }
コード例 #22
0
        public void hideAppBar(string jsonArgs)
        {
            try
            {
                //var items = JsonHelper.Deserialize<string[]>(jsonArgs);

                Deployment.Current.Dispatcher.BeginInvoke(() =>
                    {
                        PhoneApplicationFrame frame = Application.Current.RootVisual as PhoneApplicationFrame;
                        if (frame != null)
                        {
                            PhoneApplicationPage page = frame.Content as PhoneApplicationPage;
                            if (page != null)
                            {
                                ApplicationBar bar = new ApplicationBar();
                                bar.Mode = ApplicationBarMode.Minimized;
                                bar.Opacity = 0;
                                bar.IsVisible = false;
                                bar.IsMenuEnabled = false;

                                page.ApplicationBar = bar;
                                // page.ApplicationBar.IsVisible = false;
                            }
                        }
                    });
                DispatchCommandResult(new PluginResult(PluginResult.Status.OK, ""));
            }
            catch (Exception ex)
            {
                DispatchCommandResult(new PluginResult(PluginResult.Status.ERROR, ex.Message));
            }
        }
コード例 #23
0
        // 用于生成本地化 ApplicationBar 的示例代码
        private void BuildLocalizedApplicationBar()
        {
            // 将页面的 ApplicationBar 设置为 ApplicationBar 的新实例。
            ApplicationBar = new ApplicationBar();

            // 创建新按钮并将文本值设置为 AppResources 中的本地化字符串。
            ApplicationBarIconButton appBarButtonDepartment =
                new ApplicationBarIconButton(new Uri("/Assets/Icons/folder.png", UriKind.Relative));
            appBarButtonDepartment.Text = AppResources.AppBarButtonDepartment;
            ApplicationBar.Buttons.Add(appBarButtonDepartment);

            ApplicationBarIconButton appBarButtonSearch =
                new ApplicationBarIconButton(new Uri("/Assets/Icons/feature.search.png", UriKind.Relative));
            appBarButtonSearch.Text = AppResources.AppBarButtonSearch;
            ApplicationBar.Buttons.Add(appBarButtonSearch);

            ApplicationBarIconButton appBarButtonExit =
                new ApplicationBarIconButton(new Uri("/Assets/Icons/close.png", UriKind.Relative));
            appBarButtonExit.Text = AppResources.AppBarButtonExit;
            ApplicationBar.Buttons.Add(appBarButtonExit);

            // 使用 AppResources 中的本地化字符串创建新菜单项。
            //ApplicationBarMenuItem appBarMenuItem = new ApplicationBarMenuItem(AppResources.AppBarMenuItemText);
            //ApplicationBar.MenuItems.Add(appBarMenuItem);
        }
コード例 #24
0
        public BlogSettingsPage()
        {
            InitializeComponent();

            DataContext = App.MasterViewModel;

            _localizedStrings = App.Current.Resources["StringTable"] as StringTable;

            _thumbnailSizes = new List<string>();
            _thumbnailSizes.Add(_localizedStrings.ControlsText.OriginalSize);
            int limit = 10;
            for (int i = 1; i < limit; i++)
            {
                _thumbnailSizes.Add((i * 100).ToString());
            }

            ApplicationBar = new ApplicationBar();
            ApplicationBar.BackgroundColor = (Color)App.Current.Resources["AppbarBackgroundColor"];
            ApplicationBar.ForegroundColor = (Color)App.Current.Resources["WordPressGrey"];

            _saveIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.save.png", UriKind.Relative));
            _saveIconButton.Text = _localizedStrings.ControlsText.Save;
            _saveIconButton.Click += OnSaveButtonClick;
            ApplicationBar.Buttons.Add(_saveIconButton);

            Loaded += OnPageLoaded;
        }
コード例 #25
0
        public Leagues()
        {
            try
            {
                InitializeComponent();
                LoggerMobile.Instance.logMessage("Opening Leagues", Portable.Util.Log.Enums.LoggerEnum.message);
                _viewModel = (LeaguesViewModel)Resources["viewModel"];
                resultListBox.ItemRealized += resultListBox_ItemRealized;
                this.Loaded += new RoutedEventHandler(MainPage_Loaded);
                initialArray = new LeaguesJson();

                ApplicationBar = new ApplicationBar();

                ApplicationBar.Mode = ApplicationBarMode.Default;
                ApplicationBar.Opacity = 1.0;
                ApplicationBar.IsVisible = true;
                ApplicationBar.IsMenuEnabled = true;

                ApplicationBarIconButton searchBtn = new ApplicationBarIconButton();
                searchBtn.IconUri = new Uri("/Assets/Icons/feature.search.png", UriKind.Relative);
                searchBtn.Text = "Search";
                searchBtn.Click += searchBtn_Click;
                ApplicationBar.Buttons.Add(searchBtn);
            }
            catch (Exception exception)
            {
                ErrorHandler.Save(exception, MobileTypeEnum.WP8);
            }
        }
コード例 #26
0
        public Settings()
        {
            InitializeComponent();
            // Add an Application Bar that has a 'done' confirmation button and
            // a 'cancel' button

            ApplicationBar = new ApplicationBar();
            ApplicationBar.IsMenuEnabled = true;
            ApplicationBar.IsVisible = true;
            ApplicationBar.Opacity = 1.0;

            ApplicationBarIconButton doneButton = new ApplicationBarIconButton(new Uri("/Images/appbar.check.rest.png", UriKind.Relative));
            doneButton.Text = "done";
            doneButton.Click += new EventHandler(doneButton_Click);

            ApplicationBarIconButton cancelButton = new ApplicationBarIconButton(new Uri("/Images/appbar.Close.rest.png", UriKind.Relative));
            cancelButton.Text = "cancel";
            cancelButton.Click += new EventHandler(cancelButton_Click);

            ApplicationBar.Buttons.Add(doneButton);
            ApplicationBar.Buttons.Add(cancelButton);

            toEmailTextBlock.Text = settings.ToEmailSetting;
            toNameTextBlock.Text = settings.ToNameSetting;
            dayStartTextBox.Text = settings.DayStartSetting;
            lunchStartTextBox.Text = settings.LunchStartSetting;
            lunchEndTextBox.Text = settings.LunchEndSetting;
            dayEndTextBox.Text = settings.DayEndSetting;
        }
コード例 #27
0
        //Sample code for building a localized ApplicationBar
        private void BuildLocalizedApplicationBar()
        {
            // Set the page's ApplicationBar to a new instance of ApplicationBar.
            ApplicationBar = new ApplicationBar();

            // Create a new menu item with the localized string from AppResources.
            ApplicationBarMenuItem appBarMenuItem;

            // Blue
            appBarMenuItem = new ApplicationBarMenuItem(AppResources.AppBarColorBlueText);
            appBarMenuItem.Click += appBarMenuItem_Click;
            ApplicationBar.MenuItems.Add(appBarMenuItem);

            // White
            appBarMenuItem = new ApplicationBarMenuItem(AppResources.AppBarColorWhiteText);
            appBarMenuItem.Click += appBarMenuItem_Click;
            ApplicationBar.MenuItems.Add(appBarMenuItem);

            // Red
            appBarMenuItem = new ApplicationBarMenuItem(AppResources.AppBarColorRedText);
            appBarMenuItem.Click += appBarMenuItem_Click;
            ApplicationBar.MenuItems.Add(appBarMenuItem);

            // Orange
            appBarMenuItem = new ApplicationBarMenuItem(AppResources.AppBarColorOrangeText);
            appBarMenuItem.Click += appBarMenuItem_Click;
            ApplicationBar.MenuItems.Add(appBarMenuItem);
        }
コード例 #28
0
		/// <summary>
		/// Builds the application bar.
		/// </summary>
		private void BuildApplicationBar()
		{
			if (ApplicationBar == null)
			{
				ApplicationBar = new ApplicationBar();
			}

			var searchButton = new ApplicationBarIconButton(new Uri("/Images/ApplicationBar/GuildList/search.png", UriKind.Relative));
			searchButton.Text = AppResources.UI_GuildList_ApplicationBar_Search;
			searchButton.Click += ShowGuildSearchView;

			_deleteAllButton = new ApplicationBarIconButton(new Uri("/Images/ApplicationBar/CharacterList/delete.png", UriKind.Relative));
			_deleteAllButton.Text = AppResources.UI_CharacterList_ApplicationBar_DeleteAll;
			_deleteAllButton.Click += DeleteAll;

			_sortByNameMenuItem = new ApplicationBarMenuItem(AppResources.UI_GuildList_ApplicationBar_SortByName);
			_sortByNameMenuItem.Click += SortByName;

			_sortByLevelMenuItem = new ApplicationBarMenuItem(AppResources.UI_GuildList_ApplicationBar_SortByLevel);
			_sortByLevelMenuItem.Click += SortByLevel;

			_sortByMembersMenuItem = new ApplicationBarMenuItem(AppResources.UI_GuildList_ApplicationBar_SortByMembers);
			_sortByMembersMenuItem.Click += SortByMembers;

			ApplicationBar.Buttons.Add(searchButton);
			ApplicationBar.Buttons.Add(_deleteAllButton);
			ApplicationBar.MenuItems.Add(_sortByNameMenuItem);
			ApplicationBar.MenuItems.Add(_sortByLevelMenuItem);
			ApplicationBar.MenuItems.Add(_sortByMembersMenuItem);

			UpdateApplicationBarItems();
		}
コード例 #29
0
ファイル: MainView.xaml.cs プロジェクト: ufacode/imagenary.wp
        private void BuildAppBar()
        {
            _shareAppBar = new ApplicationBar();
            ShareButton = new ApplicationBarIconButton(new Uri("/Assets/images/check.png", UriKind.Relative))
                {
                    Text = "share",
                    IsEnabled = false
                };

            ShareButton.Click += (sender, args) =>
                {
                    viewModel.ShareTask();
                    Focus();
                };

            _shareAppBar.Buttons.Add(ShareButton);

            var about = new ApplicationBarMenuItem(AppResources.about);
            about.Click +=
                (sender, args) => NavigationService.Navigate(new Uri("/Views/AboutView.xaml", UriKind.Relative));

            var logout = new ApplicationBarMenuItem("logout");
            logout.Click += (sender, args) => Logout();

            _shareAppBar.MenuItems.Add(logout);
            _shareAppBar.MenuItems.Add(about);

            _photosAppBar = new ApplicationBar();
            _photosAppBar.MenuItems.Add(logout);
            _photosAppBar.MenuItems.Add(about);
        }
コード例 #30
0
        public void InitializeApplicationBar()
        {
            ApplicationBarForBudgetProject = new ApplicationBar();
            ApplicationBarForBudgetMonthlyReport = new ApplicationBar();

            // Add budgetProject button.

            ApplicationBarIconButton addBudgetProjectButton =
                new ApplicationBarIconButton(IconUirs.AddPlusIconButton);
            addBudgetProjectButton.Text = AppResources.AddButtonText;
            addBudgetProjectButton.Click += new System.EventHandler(addBudgetProjectButton_Click);

            ApplicationBarIconButton exportBudgetProjectsButton =
                new ApplicationBarIconButton(IconUirs.ColoudIconButton);
            exportBudgetProjectsButton.Text = AppResources.ExportReport;

            ApplicationBarForBudgetProject.Buttons.Add(addBudgetProjectButton);
            //ApplicationBarForBudgetProject.Buttons.Add(exportBudgetProjectsButton);

            ApplicationBarIconButton exportBudgetMonthlyReportButton =
              new ApplicationBarIconButton(IconUirs.ColoudIconButton);
            exportBudgetMonthlyReportButton.Text = AppResources.ExportReport;
            exportBudgetMonthlyReportButton.IsEnabled = false;

            ApplicationBarForBudgetMonthlyReport.Buttons.Add(exportBudgetMonthlyReportButton);

            applicationBarForProjectlistSelectorMode = new ApplicationBar();
            ApplicationBarIconButton deleteMenuItem = new ApplicationBarIconButton(IconUirs.DeleteIcon);
            deleteMenuItem.Text = AppResources.Delete;
            deleteMenuItem.Click += new System.EventHandler(deleteMenuItem_Click);

            applicationBarForProjectlistSelectorMode.Buttons.Add(deleteMenuItem);
        }
コード例 #31
0
 void dealWithAppBar()
 {
     #region[AppBar1]
     appBar1 = new ApplicationBar();
     appBar1.Mode = ApplicationBarMode.Default;
     appBar1.Opacity = 0.5;
     appBar1.IsVisible = true;
     btnAppBarBack = new ApplicationBarIconButton();
     btnAppBarBack.IconUri = new Uri("/Image_Post/appbar.cancel.rest.png", UriKind.Relative);
     btnAppBarBack.Text = "cancel";
     appBar1.Buttons.Add(btnAppBarBack);
     btnAppBarNext = new ApplicationBarIconButton();
     btnAppBarNext.IconUri = new Uri("/Image_Post/appbar.check.rest.png", UriKind.Relative);
     btnAppBarNext.Text = "ok";
     appBar1.Buttons.Add(btnAppBarNext);
     btnAppBarBack.Click += new EventHandler(btnAppBarBack_Click);
     btnAppBarNext.Click += new EventHandler(btnAppBarNext_Click);
     #endregion
     #region[AppBar2]
     appBar2 = new ApplicationBar();
     appBar2.Mode = ApplicationBarMode.Default;
     appBar2.Opacity = 0.5;
     appBar2.IsVisible = true;
     btnAppBarOK = new ApplicationBarIconButton();
     btnAppBarOK.IconUri = new Uri("/Image_Post/appbar.check.rest.png", UriKind.Relative);
     btnAppBarOK.Text = "ok";
     appBar2.Buttons.Add(btnAppBarOK);
     btnAppBarOK.Click += new EventHandler(btnAppBarOK_Click);
     #endregion
     this.ApplicationBar = appBar2;
 }
コード例 #32
0
        public FeedbackPage()
        {
            ApplicationBar = new ApplicationBar();
            ApplicationBar.Mode = ApplicationBarMode.Default;
            ApplicationBar.StateChanged += (sender, e) =>
            {
                var bar = (sender as ApplicationBar);
                if (CurrentViewState.Equals(FeedbackViewState.ImageShow) || CurrentViewState.Equals(FeedbackViewState.ImageEdit)) {
                    if (e.IsMenuVisible)
                    {
                        bar.Opacity = 0.75;
                    }
                    else
                    {
                        bar.Opacity = 0;
                    }
                } 
            };

            Action<FeedbackViewState> switchViewStateAction = (newViewState) =>
            {
                SwitchToViewState(newViewState);
            };
            this.VM = new FeedbackPageVM(switchViewStateAction);

            this.formControl = new FeedbackMessageFormControl(this);
            this.listControl = new FeedbackMessageListControl(this);
            this.imageControl = new FeedbackImageControl(this);

            initializeAppBarIcons();
            
            InitializeComponent();
        }
コード例 #33
0
        public BindableApplicationBar()
        {
            this.applicationBar = new Microsoft.Phone.Shell.ApplicationBar();
            this.applicationBar.StateChanged += OnStateChanged;

            this.buttons = new ObservableCollection <ApplicationBarIconButton>();
            this.buttons.CollectionChanged += OnButtonsCollectionChanged;

            this.Loaded += OnLoaded;
        }
コード例 #34
0
ファイル: MainPage.g.cs プロジェクト: zlc18/anyplace
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/AnyPlace;component/MainPage.xaml", System.UriKind.Relative));
     this.canvas               = ((System.Windows.Controls.Canvas)(this.FindName("canvas")));
     this.moveAnimation        = ((System.Windows.Media.Animation.Storyboard)(this.FindName("moveAnimation")));
     this.CanvasMenu           = ((System.Windows.Controls.Canvas)(this.FindName("CanvasMenu")));
     this.gd_result            = ((System.Windows.Controls.Grid)(this.FindName("gd_result")));
     this.pb_result            = ((System.Windows.Controls.ProgressBar)(this.FindName("pb_result")));
     this.txt_term             = ((System.Windows.Controls.TextBlock)(this.FindName("txt_term")));
     this.txt_result           = ((System.Windows.Controls.TextBlock)(this.FindName("txt_result")));
     this.ls_search            = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("ls_search")));
     this.directions_grid      = ((System.Windows.Controls.Grid)(this.FindName("directions_grid")));
     this.calcProgrBar         = ((System.Windows.Controls.ProgressBar)(this.FindName("calcProgrBar")));
     this.calcroutestext       = ((System.Windows.Controls.TextBlock)(this.FindName("calcroutestext")));
     this.time                 = ((System.Windows.Controls.TextBlock)(this.FindName("time")));
     this.distance             = ((System.Windows.Controls.TextBlock)(this.FindName("distance")));
     this.dire                 = ((System.Windows.Controls.TextBlock)(this.FindName("dire")));
     this.RouteLLS             = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("RouteLLS")));
     this.grdCommands          = ((System.Windows.Controls.Grid)(this.FindName("grdCommands")));
     this.Mymap                = ((Microsoft.Phone.Maps.Controls.Map)(this.FindName("Mymap")));
     this.floorpicker          = ((System.Windows.Controls.Grid)(this.FindName("floorpicker")));
     this.autoCompleteBuilding = ((Microsoft.Phone.Controls.AutoCompleteBox)(this.FindName("autoCompleteBuilding")));
     this.txt_selectedfloor    = ((System.Windows.Controls.TextBlock)(this.FindName("txt_selectedfloor")));
     this.Picker               = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("Picker")));
     this.btn_builddown        = ((System.Windows.Controls.Button)(this.FindName("btn_builddown")));
     this.btn_floordown        = ((System.Windows.Controls.Button)(this.FindName("btn_floordown")));
     this.buildingsButton      = ((System.Windows.Controls.Grid)(this.FindName("buildingsButton")));
     this.optionsbtn           = ((System.Windows.Controls.Grid)(this.FindName("optionsbtn")));
     this.lpicker              = ((System.Windows.Controls.Grid)(this.FindName("lpicker")));
     this.BPicker              = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("BPicker")));
     this.downloading          = ((System.Windows.Controls.Grid)(this.FindName("downloading")));
     this.txt_download         = ((System.Windows.Controls.TextBlock)(this.FindName("txt_download")));
     this.trackmebtn           = ((System.Windows.Controls.Grid)(this.FindName("trackmebtn")));
     this.floorButton          = ((System.Windows.Controls.Grid)(this.FindName("floorButton")));
     this.stack                = ((System.Windows.Controls.StackPanel)(this.FindName("stack")));
     this.loading              = ((System.Windows.Controls.ProgressBar)(this.FindName("loading")));
     this.closeGrid            = ((System.Windows.Controls.Grid)(this.FindName("closeGrid")));
     this.txt_msg              = ((System.Windows.Controls.TextBlock)(this.FindName("txt_msg")));
     this.zoompanel            = ((System.Windows.Controls.Grid)(this.FindName("zoompanel")));
     this.floorPanel           = ((System.Windows.Controls.Grid)(this.FindName("floorPanel")));
     this.txt_cur              = ((System.Windows.Controls.TextBlock)(this.FindName("txt_cur")));
     this.ContentPanel         = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.grid_search          = ((System.Windows.Controls.Grid)(this.FindName("grid_search")));
     this.txt_msg1             = ((System.Windows.Controls.TextBlock)(this.FindName("txt_msg1")));
     this.all_builds           = ((System.Windows.Controls.Button)(this.FindName("all_builds")));
     this.autoCompleteBox      = ((Microsoft.Phone.Controls.AutoCompleteBox)(this.FindName("autoCompleteBox")));
     this.MapOptions           = ((System.Windows.Controls.Grid)(this.FindName("MapOptions")));
     this.appBar               = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("appBar")));
     this.sbutton              = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("sbutton")));
 }
コード例 #35
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/PhotoSec;component/photos.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.photoList = ((System.Windows.Controls.ListBox)(this.FindName("photoList")));
     this.appBar = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("appBar")));
 }
コード例 #36
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/PhotoSec;component/PicView.xaml", System.UriKind.Relative));
     this.picture      = ((System.Windows.Controls.Image)(this.FindName("picture")));
     this.appBar       = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("appBar")));
     this.deleteButton = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("deleteButton")));
 }
コード例 #37
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/LeanCloud.LeanMeaasge.Demo;component/Media/AudioRecord.xaml", System.UriKind.Relative));
     this.LayoutRoot            = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.PhoneAppBar           = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("PhoneAppBar")));
     this.StartRecording        = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("StartRecording")));
     this.StopPlaybackRecording = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("StopPlaybackRecording")));
 }
コード例 #38
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/sm;component/FormKalender.xaml", System.UriKind.Relative));
     this.LayoutRoot   = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.tanggalx     = ((Microsoft.Phone.Controls.DatePicker)(this.FindName("tanggalx")));
     this.AppBar1      = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("AppBar1")));
 }
コード例 #39
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/QNote;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot   = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.notes        = ((System.Windows.Controls.TextBox)(this.FindName("notes")));
     this.appBar       = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("appBar")));
     this.deleteButton = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("deleteButton")));
 }
コード例 #40
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/com.viettel.framework.mobile.CrossPlatform;component/Plugins/org.apache.cordova." +
                 "media-capture/VideoRecorder.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Canvas)(this.FindName("LayoutRoot")));
     this.viewfinderRectangle = ((System.Windows.Shapes.Rectangle)(this.FindName("viewfinderRectangle")));
     this.PhoneAppBar = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("PhoneAppBar")));
     this.btnStartRecording = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnStartRecording")));
     this.btnTakeVideo = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnTakeVideo")));
 }
コード例 #41
0
ファイル: AddPage.g.cs プロジェクト: voquanghien/DictionaryWP
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/EngApp;component/AddPage.xaml", System.UriKind.Relative));
     this.Bar                  = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("Bar")));
     this.NameTextBox          = ((System.Windows.Controls.TextBox)(this.FindName("NameTextBox")));
     this.WordsTextBox         = ((System.Windows.Controls.TextBox)(this.FindName("WordsTextBox")));
     this.DescriptionTextBlock = ((System.Windows.Controls.TextBlock)(this.FindName("DescriptionTextBlock")));
     this.wtf                  = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("wtf")));
 }
コード例 #42
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/pullmeup;component/cordovalib/UI/VideoRecorder.xaml", System.UriKind.Relative));
     this.LayoutRoot          = ((System.Windows.Controls.Canvas)(this.FindName("LayoutRoot")));
     this.viewfinderRectangle = ((System.Windows.Shapes.Rectangle)(this.FindName("viewfinderRectangle")));
     this.PhoneAppBar         = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("PhoneAppBar")));
     this.btnStartRecording   = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnStartRecording")));
     this.btnTakeVideo        = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnTakeVideo")));
 }
コード例 #43
0
        private void InitAppBars()
        {
            _bar = new Microsoft.Phone.Shell.ApplicationBar();
            AppBarHelper.AddButton(_bar, "report code issue", OnAppBarClick);

            if (_isPinned != null)
            {
                AppBarHelper.AddButton(_bar,
                                       _isPinned.Value == true ? "unpin" : "pin to start",
                                       OnAppBarClick, _isPinned.Value == true ? AppBarIcon.Unpin : AppBarIcon.Pin);
            }

            ApplicationBar = _bar;
        }
コード例 #44
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/sm;component/ReminderPage.xaml", System.UriKind.Relative));
     this.LayoutRoot   = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.lbReminders  = ((System.Windows.Controls.ListBox)(this.FindName("lbReminders")));
     this.AppBar1      = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("AppBar1")));
     this.iconHapus    = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("iconHapus")));
 }
コード例 #45
0
ファイル: ViewEpisode.xaml.cs プロジェクト: taurgis/WPTrakt
        private void CreateNextEpisodeMenuItem(Microsoft.Phone.Shell.ApplicationBar appBar)
        {
            String season;

            NavigationContext.QueryString.TryGetValue("season", out season);

            if (this.show.getSeason(int.Parse(season)).SeasonEpisodes.Count > this.episode.NumberAsInt)
            {
                ApplicationBarMenuItem nextEpisode = new ApplicationBarMenuItem();
                nextEpisode.Click += nextSeason_Click;

                nextEpisode.Text = "Next episode";
                appBar.MenuItems.Add(nextEpisode);
            }
        }
コード例 #46
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/sm;component/NewReminderPage.xaml", System.UriKind.Relative));
     this.LayoutRoot   = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.txtTitle     = ((System.Windows.Controls.TextBox)(this.FindName("txtTitle")));
     this.txtContent   = ((System.Windows.Controls.TextBox)(this.FindName("txtContent")));
     this.timeX        = ((Microsoft.Phone.Controls.TimePicker)(this.FindName("timeX")));
     this.AppBar1      = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("AppBar1")));
 }
コード例 #47
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/XPlatformCloudKit.Phone8;component/Views/ItemDescriptionView.xaml", System.UriKind.Relative));
     this.LayoutRoot     = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel   = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.WebBrowser     = ((Microsoft.Phone.Controls.WebBrowser)(this.FindName("WebBrowser")));
     this.AppBar         = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("AppBar")));
     this.PreviousButton = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("PreviousButton")));
     this.ShareButton    = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("ShareButton")));
     this.NextButton     = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("NextButton")));
 }
コード例 #48
0
ファイル: UserLogin.g.i.cs プロジェクト: kaelanfouwels/LocalD
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/LocalD;component/Pages/UserLogin.xaml", System.UriKind.Relative));
     this.LayoutRoot     = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.UserUsername   = ((System.Windows.Controls.TextBox)(this.FindName("UserUsername")));
     this.UserPwd        = ((System.Windows.Controls.PasswordBox)(this.FindName("UserPwd")));
     this.UserToRegister = ((System.Windows.Controls.Button)(this.FindName("UserToRegister")));
     this.UserToLogin    = ((System.Windows.Controls.Button)(this.FindName("UserToLogin")));
     this.ProgressBar    = ((System.Windows.Controls.ProgressBar)(this.FindName("ProgressBar")));
     this.AppBar         = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("AppBar")));
 }
コード例 #49
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/POSH.Socrata.WP8;component/Views/Settings.xaml", System.UriKind.Relative));
     this.LayoutRoot      = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel    = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.lpkCityName     = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("lpkCityName")));
     this.chkLocation     = ((System.Windows.Controls.CheckBox)(this.FindName("chkLocation")));
     this.tsNotification  = ((Microsoft.Phone.Controls.ToggleSwitch)(this.FindName("tsNotification")));
     this.appBarPanel     = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("appBarPanel")));
     this.appbar_rate_app = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("appbar_rate_app")));
 }
コード例 #50
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/UsingBingMaps;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot     = ((System.Windows.Controls.Canvas)(this.FindName("LayoutRoot")));
     this.MapView        = ((System.Windows.Controls.Border)(this.FindName("MapView")));
     this.RouteView      = ((System.Windows.Controls.Border)(this.FindName("RouteView")));
     this.RouteStates    = ((System.Windows.VisualStateGroup)(this.FindName("RouteStates")));
     this.ShowRoute      = ((System.Windows.VisualState)(this.FindName("ShowRoute")));
     this.HideRoute      = ((System.Windows.VisualState)(this.FindName("HideRoute")));
     this.applicationBar = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("applicationBar")));
 }
コード例 #51
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/PhotoSec;component/PicView.xaml", System.UriKind.Relative));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.viewport     = ((System.Windows.Controls.Primitives.ViewportControl)(this.FindName("viewport")));
     this.canvas       = ((System.Windows.Controls.Canvas)(this.FindName("canvas")));
     this.TestImage    = ((System.Windows.Controls.Image)(this.FindName("TestImage")));
     this.xform        = ((System.Windows.Media.ScaleTransform)(this.FindName("xform")));
     this.appBar       = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("appBar")));
     this.deleteButton = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("deleteButton")));
 }
コード例 #52
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/FindMe;component/MainPage.xaml", System.UriKind.Relative));
     this.mainPage    = ((Microsoft.Phone.Controls.PhoneApplicationPage)(this.FindName("mainPage")));
     this.appBar      = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("appBar")));
     this.appLocation = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("appLocation")));
     this.appShare    = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("appShare")));
     this.LayoutRoot  = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.map         = ((Microsoft.Phone.Maps.Controls.Map)(this.FindName("map")));
     this.pbLoading   = ((System.Windows.Controls.ProgressBar)(this.FindName("pbLoading")));
 }
コード例 #53
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Facts;component/SettingsPage.xaml", System.UriKind.Relative));
     this.SPAppBar   = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("SPAppBar")));
     this.AppEmail   = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("AppEmail")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.RecTitle   = ((System.Windows.Shapes.Rectangle)(this.FindName("RecTitle")));
     this.TBNumber   = ((System.Windows.Controls.TextBlock)(this.FindName("TBNumber")));
     this.TBLogo     = ((System.Windows.Controls.TextBlock)(this.FindName("TBLogo")));
     this.PBarLeft   = ((System.Windows.Controls.ProgressBar)(this.FindName("PBarLeft")));
     this.PBarRight  = ((System.Windows.Controls.ProgressBar)(this.FindName("PBarRight")));
 }
コード例 #54
0
ファイル: VideoRecorder.g.i.cs プロジェクト: dmsl/rayzit
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Rayzit;component/Pages/Attachments/VideoRecorder.xaml", System.UriKind.Relative));
     this.LayoutRoot            = ((System.Windows.Controls.Canvas)(this.FindName("LayoutRoot")));
     this.ViewfinderRectangle   = ((System.Windows.Shapes.Rectangle)(this.FindName("ViewfinderRectangle")));
     this.VideoPlayer           = ((System.Windows.Controls.MediaElement)(this.FindName("VideoPlayer")));
     this.txtDebug              = ((System.Windows.Controls.TextBlock)(this.FindName("txtDebug")));
     this.PhoneAppBar           = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("PhoneAppBar")));
     this.StartRecording        = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("StartRecording")));
     this.StopPlaybackRecording = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("StopPlaybackRecording")));
     this.StartPlayback         = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("StartPlayback")));
     this.SavePlayback          = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("SavePlayback")));
 }
コード例 #55
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/LifeChacksApp;component/Pages/ListPage.xaml", System.UriKind.Relative));
     this.LPStartAnimation = ((System.Windows.Media.Animation.Storyboard)(this.FindName("LPStartAnimation")));
     this.SwipeAnimation   = ((System.Windows.Media.Animation.Storyboard)(this.FindName("SwipeAnimation")));
     this.AppBar           = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("AppBar")));
     this.AppShow          = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("AppShow")));
     this.AppListRemove    = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("AppListRemove")));
     this.AppSave          = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("AppSave")));
     this.LayoutRoot       = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.RecRay           = ((System.Windows.Shapes.Rectangle)(this.FindName("RecRay")));
     this.rectangle        = ((System.Windows.Shapes.Rectangle)(this.FindName("rectangle")));
     this.MainPivot        = ((Microsoft.Phone.Controls.Pivot)(this.FindName("MainPivot")));
     this.PIFirst          = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("PIFirst")));
     this.SVFirst          = ((System.Windows.Controls.ScrollViewer)(this.FindName("SVFirst")));
     this.GridFirst        = ((System.Windows.Controls.Grid)(this.FindName("GridFirst")));
     this.TBFirst          = ((System.Windows.Controls.TextBlock)(this.FindName("TBFirst")));
     this.ImageFirst       = ((System.Windows.Controls.Image)(this.FindName("ImageFirst")));
     this.RecImageFirst    = ((System.Windows.Shapes.Rectangle)(this.FindName("RecImageFirst")));
     this.PISecond         = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("PISecond")));
     this.SVSecond         = ((System.Windows.Controls.ScrollViewer)(this.FindName("SVSecond")));
     this.GridSecond       = ((System.Windows.Controls.Grid)(this.FindName("GridSecond")));
     this.TBSecond         = ((System.Windows.Controls.TextBlock)(this.FindName("TBSecond")));
     this.ImageSecond      = ((System.Windows.Controls.Image)(this.FindName("ImageSecond")));
     this.RecImageSecond   = ((System.Windows.Shapes.Rectangle)(this.FindName("RecImageSecond")));
     this.PIThird          = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("PIThird")));
     this.SVThird          = ((System.Windows.Controls.ScrollViewer)(this.FindName("SVThird")));
     this.GridThird        = ((System.Windows.Controls.Grid)(this.FindName("GridThird")));
     this.TBThird          = ((System.Windows.Controls.TextBlock)(this.FindName("TBThird")));
     this.ImageThird       = ((System.Windows.Controls.Image)(this.FindName("ImageThird")));
     this.RecImageThird    = ((System.Windows.Shapes.Rectangle)(this.FindName("RecImageThird")));
     this.RecTitle         = ((System.Windows.Shapes.Rectangle)(this.FindName("RecTitle")));
     this.PBar             = ((System.Windows.Controls.ProgressBar)(this.FindName("PBar")));
     this.LikeLogo         = ((System.Windows.Shapes.Rectangle)(this.FindName("LikeLogo")));
     this.TBInfoPage       = ((System.Windows.Controls.TextBlock)(this.FindName("TBInfoPage")));
     this.TBLogo           = ((System.Windows.Controls.TextBlock)(this.FindName("TBLogo")));
     this.Logo             = ((System.Windows.Shapes.Rectangle)(this.FindName("Logo")));
     this.ShowBigImage     = ((System.Windows.Controls.Image)(this.FindName("ShowBigImage")));
 }
コード例 #56
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Beem;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot            = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.btnSignIn             = ((Microsoft.Live.Controls.SignInButton)(this.FindName("btnSignIn")));
     this.grdLoading            = ((System.Windows.Controls.Grid)(this.FindName("grdLoading")));
     this.pvtRecorded           = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("pvtRecorded")));
     this.grdUpload             = ((System.Windows.Controls.Grid)(this.FindName("grdUpload")));
     this.appBar                = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("appBar")));
     this.btnRefreshStationList = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnRefreshStationList")));
     this.btnNowPlaying         = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnNowPlaying")));
     this.btnAbout              = ((Microsoft.Phone.Shell.ApplicationBarMenuItem)(this.FindName("btnAbout")));
     this.btnSettings           = ((Microsoft.Phone.Shell.ApplicationBarMenuItem)(this.FindName("btnSettings")));
 }
コード例 #57
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Facts;component/AboutApp.xaml", System.UriKind.Relative));
     this.AppBar     = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("AppBar")));
     this.AppShow    = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("AppShow")));
     this.AppRate    = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("AppRate")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TBLogo     = ((System.Windows.Controls.TextBlock)(this.FindName("TBLogo")));
     this.PBarLeft   = ((System.Windows.Controls.ProgressBar)(this.FindName("PBarLeft")));
     this.PBarRight  = ((System.Windows.Controls.ProgressBar)(this.FindName("PBarRight")));
     this.TBNumber   = ((System.Windows.Controls.TextBlock)(this.FindName("TBNumber")));
     this.TBAuthor   = ((System.Windows.Controls.TextBlock)(this.FindName("TBAuthor")));
     this.ButNews    = ((System.Windows.Controls.HyperlinkButton)(this.FindName("ButNews")));
 }
コード例 #58
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/POSH.Socrata.WP8;component/Views/Comment.xaml", System.UriKind.Relative));
     this.LayoutRoot           = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel         = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.prgComments          = ((System.Windows.Controls.ProgressBar)(this.FindName("prgComments")));
     this.lstCommentList       = ((System.Windows.Controls.ItemsControl)(this.FindName("lstCommentList")));
     this.tbkNoResult          = ((System.Windows.Controls.TextBlock)(this.FindName("tbkNoResult")));
     this.txtComment           = ((System.Windows.Controls.TextBox)(this.FindName("txtComment")));
     this.popUpSocrataLogin    = ((System.Windows.Controls.Primitives.Popup)(this.FindName("popUpSocrataLogin")));
     this.bottomAppBar         = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("bottomAppBar")));
     this.appbar_addComment    = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("appbar_addComment")));
     this.appbar_cancelComment = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("appbar_cancelComment")));
 }
コード例 #59
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Geolocation;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot            = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel            = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.txtcaption            = ((System.Windows.Controls.TextBlock)(this.FindName("txtcaption")));
     this.calibrationStackPanel = ((System.Windows.Controls.StackPanel)(this.FindName("calibrationStackPanel")));
     this.calibrationTextBlock  = ((System.Windows.Controls.TextBlock)(this.FindName("calibrationTextBlock")));
     this.calibrationButton     = ((System.Windows.Controls.Button)(this.FindName("calibrationButton")));
     this.stepStackPanel        = ((System.Windows.Controls.StackPanel)(this.FindName("stepStackPanel")));
     this.rd1           = ((System.Windows.Controls.RadioButton)(this.FindName("rd1")));
     this.rd2           = ((System.Windows.Controls.RadioButton)(this.FindName("rd2")));
     this.rd3           = ((System.Windows.Controls.RadioButton)(this.FindName("rd3")));
     this.rd4           = ((System.Windows.Controls.RadioButton)(this.FindName("rd4")));
     this.rd5           = ((System.Windows.Controls.RadioButton)(this.FindName("rd5")));
     this.rd6           = ((System.Windows.Controls.RadioButton)(this.FindName("rd6")));
     this.txtcustomstep = ((System.Windows.Controls.TextBox)(this.FindName("txtcustomstep")));
     this.ContentPanel  = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.map           = ((Microsoft.Phone.Maps.Controls.Map)(this.FindName("map")));
     this.x             = ((System.Windows.Controls.TextBlock)(this.FindName("x")));
     this.y             = ((System.Windows.Controls.TextBlock)(this.FindName("y")));
     this.z             = ((System.Windows.Controls.TextBlock)(this.FindName("z")));
     this.truel         = ((System.Windows.Controls.TextBlock)(this.FindName("truel")));
     this.latbox        = ((System.Windows.Controls.TextBlock)(this.FindName("latbox")));
     this.txtlat        = ((System.Windows.Controls.TextBlock)(this.FindName("txtlat")));
     this.lonbox        = ((System.Windows.Controls.TextBlock)(this.FindName("lonbox")));
     this.txtlon        = ((System.Windows.Controls.TextBlock)(this.FindName("txtlon")));
     this.steps         = ((System.Windows.Controls.TextBlock)(this.FindName("steps")));
     this.txtstep       = ((System.Windows.Controls.TextBlock)(this.FindName("txtstep")));
     this.txtst         = ((System.Windows.Controls.TextBlock)(this.FindName("txtst")));
     this.statebox      = ((System.Windows.Controls.TextBlock)(this.FindName("statebox")));
     this.statusbox     = ((System.Windows.Controls.TextBlock)(this.FindName("statusbox")));
     this.appbar        = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("appbar")));
     this.onoff         = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("onoff")));
     this.bt1           = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("bt1")));
     this.bt2           = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("bt2")));
     this.step          = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("step")));
 }
コード例 #60
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/POSH.Socrata.WP8;component/Views/CityCategoryDetail.xaml", System.UriKind.Relative));
     this.LayoutRoot    = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel  = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.nokiaMap      = ((Microsoft.Phone.Maps.Controls.Map)(this.FindName("nokiaMap")));
     this.progressBar   = ((System.Windows.Controls.ProgressBar)(this.FindName("progressBar")));
     this.grdDetails    = ((System.Windows.Controls.Grid)(this.FindName("grdDetails")));
     this.tbkDistance   = ((System.Windows.Controls.TextBlock)(this.FindName("tbkDistance")));
     this.tbkPhone      = ((System.Windows.Controls.HyperlinkButton)(this.FindName("tbkPhone")));
     this.btnAddComents = ((System.Windows.Controls.Button)(this.FindName("btnAddComents")));
     this.appBarPanel   = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("appBarPanel")));
     this.appbar_pin    = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("appbar_pin")));
 }