Exemplo n.º 1
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/WeatherLite;component/MainPage.xaml", System.UriKind.Relative));
     this.addnew             = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("addnew")));
     this.LayoutRoot         = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel         = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.placeHead          = ((System.Windows.Controls.TextBlock)(this.FindName("placeHead")));
     this.ContentPanel       = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.gBlocks            = ((System.Windows.Controls.Grid)(this.FindName("gBlocks")));
     this.country            = ((System.Windows.Controls.TextBlock)(this.FindName("country")));
     this.temp               = ((System.Windows.Controls.TextBlock)(this.FindName("temp")));
     this.maxTemp            = ((System.Windows.Controls.TextBlock)(this.FindName("maxTemp")));
     this.minTemp            = ((System.Windows.Controls.TextBlock)(this.FindName("minTemp")));
     this.humidity           = ((System.Windows.Controls.TextBlock)(this.FindName("humidity")));
     this.precipitation      = ((System.Windows.Controls.TextBlock)(this.FindName("precipitation")));
     this.country_Copy       = ((System.Windows.Controls.TextBlock)(this.FindName("country_Copy")));
     this.temp_Copy          = ((System.Windows.Controls.TextBlock)(this.FindName("temp_Copy")));
     this.maxTemp_Copy       = ((System.Windows.Controls.TextBlock)(this.FindName("maxTemp_Copy")));
     this.minTemp_Copy       = ((System.Windows.Controls.TextBlock)(this.FindName("minTemp_Copy")));
     this.humidity_Copy      = ((System.Windows.Controls.TextBlock)(this.FindName("humidity_Copy")));
     this.precipitation_Copy = ((System.Windows.Controls.TextBlock)(this.FindName("precipitation_Copy")));
     this.More_Button        = ((System.Windows.Controls.Button)(this.FindName("More_Button")));
     this.dbg = ((System.Windows.Controls.TextBlock)(this.FindName("dbg")));
 }
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            var addButton = new ApplicationBarIconButton(new Uri("/Assets/AppBar/add.png", UriKind.Relative))
            {
                Text = AppResources.AddLabel
            };
            addButton.Click += AddClick;

            var deleteButton = new ApplicationBarIconButton(new Uri("/Assets/Images/delete.png", UriKind.Relative))
            {
                Text = AppResources.DeleteLabel
            };
            deleteButton.Click += DeleteAppBarClick;

            var settingsButton = new ApplicationBarIconButton(new Uri("/Assets/Images/feature.settings.png", UriKind.Relative))
            {
                Text = AppResources.SettingsLabel
            };
            settingsButton.Click += SettingsClick;

            ApplicationBar.Buttons.Add(addButton);
            ApplicationBar.Buttons.Add(deleteButton);
            ApplicationBar.Buttons.Add(settingsButton);
        }
Exemplo n.º 3
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")));
 }
Exemplo n.º 4
0
        // 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
           
        }
Exemplo n.º 5
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;
        }
Exemplo n.º 6
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/TakeMeThere;component/DetailPage.xaml", System.UriKind.Relative));
     this.LayoutRoot                = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.Panorama                  = ((Microsoft.Phone.Controls.Panorama)(this.FindName("Panorama")));
     this.TextBox_Name              = ((Microsoft.Phone.Controls.PhoneTextBox)(this.FindName("TextBox_Name")));
     this.TextBox_Latitude          = ((Microsoft.Phone.Controls.PhoneTextBox)(this.FindName("TextBox_Latitude")));
     this.TextBox_Longitude         = ((Microsoft.Phone.Controls.PhoneTextBox)(this.FindName("TextBox_Longitude")));
     this.TextBox_Address           = ((Microsoft.Phone.Controls.PhoneTextBox)(this.FindName("TextBox_Address")));
     this.TextBox_PhoneNum          = ((Microsoft.Phone.Controls.PhoneTextBox)(this.FindName("TextBox_PhoneNum")));
     this.Grid_PhoneCall            = ((System.Windows.Controls.Grid)(this.FindName("Grid_PhoneCall")));
     this.Image_Phone               = ((System.Windows.Controls.Image)(this.FindName("Image_Phone")));
     this.Image_BaseCircle          = ((System.Windows.Controls.Image)(this.FindName("Image_BaseCircle")));
     this.ScrollViewer_Note         = ((System.Windows.Controls.ScrollViewer)(this.FindName("ScrollViewer_Note")));
     this.TextBox_Note              = ((Microsoft.Phone.Controls.PhoneTextBox)(this.FindName("TextBox_Note")));
     this.CheckBox_IsTarget         = ((System.Windows.Controls.CheckBox)(this.FindName("CheckBox_IsTarget")));
     this.CheckBox_IsVisible        = ((System.Windows.Controls.CheckBox)(this.FindName("CheckBox_IsVisible")));
     this.TextBlock_CreateDate      = ((System.Windows.Controls.TextBlock)(this.FindName("TextBlock_CreateDate")));
     this.TextBlock_CreateDayOfWeek = ((System.Windows.Controls.TextBlock)(this.FindName("TextBlock_CreateDayOfWeek")));
     this.SaveButton                = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("SaveButton")));
     this.DownloadButton            = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("DownloadButton")));
 }
Exemplo n.º 7
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Eleicoes2014;component/View/Candidatos/CandidatoDetalheView.xaml", System.UriKind.Relative));
     this.LayoutRoot                 = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel                 = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.ApplicationTitle           = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.PageTitle                  = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.ContentPanel               = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.principalStackPanel        = ((System.Windows.Controls.StackPanel)(this.FindName("principalStackPanel")));
     this.montanteTotalTextBlock     = ((System.Windows.Controls.TextBlock)(this.FindName("montanteTotalTextBlock")));
     this.mostrar_Processos_Botao    = ((System.Windows.Controls.HyperlinkButton)(this.FindName("mostrar_Processos_Botao")));
     this.processosListagem          = ((System.Windows.Controls.ListBox)(this.FindName("processosListagem")));
     this.processosTextBlock         = ((System.Windows.Controls.TextBlock)(this.FindName("processosTextBlock")));
     this.ocultar_Processos_Botao    = ((System.Windows.Controls.HyperlinkButton)(this.FindName("ocultar_Processos_Botao")));
     this.mostrar_Bens_Botao         = ((System.Windows.Controls.HyperlinkButton)(this.FindName("mostrar_Bens_Botao")));
     this.bensListagem               = ((System.Windows.Controls.ListBox)(this.FindName("bensListagem")));
     this.bensTextBlock              = ((System.Windows.Controls.TextBlock)(this.FindName("bensTextBlock")));
     this.ocultar_Bens_Botao         = ((System.Windows.Controls.HyperlinkButton)(this.FindName("ocultar_Bens_Botao")));
     this.mostrar_Candidaturas_Botao = ((System.Windows.Controls.HyperlinkButton)(this.FindName("mostrar_Candidaturas_Botao")));
     this.candidaturasListagem       = ((System.Windows.Controls.ListBox)(this.FindName("candidaturasListagem")));
     this.candidaturasTextBlock      = ((System.Windows.Controls.TextBlock)(this.FindName("candidaturasTextBlock")));
     this.ocultar_Candidaturas_Botao = ((System.Windows.Controls.HyperlinkButton)(this.FindName("ocultar_Candidaturas_Botao")));
     this.mostrar_Estatisticas_Botao = ((System.Windows.Controls.HyperlinkButton)(this.FindName("mostrar_Estatisticas_Botao")));
     this.estatisticasListagem       = ((System.Windows.Controls.ListBox)(this.FindName("estatisticasListagem")));
     this.estatisticasTextBlock      = ((System.Windows.Controls.TextBlock)(this.FindName("estatisticasTextBlock")));
     this.ocultar_Estatisticas_Botao = ((System.Windows.Controls.HyperlinkButton)(this.FindName("ocultar_Estatisticas_Botao")));
     this.displayProgresso           = ((System.Windows.Controls.TextBlock)(this.FindName("displayProgresso")));
     this.barraProgresso             = ((System.Windows.Controls.ProgressBar)(this.FindName("barraProgresso")));
     this.atualizarBotao             = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("atualizarBotao")));
 }
Exemplo n.º 8
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/TakeMeThere;component/ListPage.xaml", System.UriKind.Relative));
     this.MyCollection                    = ((System.Windows.Data.CollectionViewSource)(this.FindName("MyCollection")));
     this.LayoutRoot                      = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.Pivot_ListPage                  = ((Microsoft.Phone.Controls.Pivot)(this.FindName("Pivot_ListPage")));
     this.PivotItem1                      = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("PivotItem1")));
     this.ListBox_Destination             = ((System.Windows.Controls.ListBox)(this.FindName("ListBox_Destination")));
     this.TextBlock_NoItemSign            = ((System.Windows.Controls.TextBlock)(this.FindName("TextBlock_NoItemSign")));
     this.Grid_SearchBox                  = ((System.Windows.Controls.Grid)(this.FindName("Grid_SearchBox")));
     this.TextBox_SearchBox               = ((Microsoft.Phone.Controls.PhoneTextBox)(this.FindName("TextBox_SearchBox")));
     this.Grid_SortOption                 = ((System.Windows.Controls.Grid)(this.FindName("Grid_SortOption")));
     this.RadioButton_SortOption_Name     = ((System.Windows.Controls.RadioButton)(this.FindName("RadioButton_SortOption_Name")));
     this.RadioButton_SortOption_Location = ((System.Windows.Controls.RadioButton)(this.FindName("RadioButton_SortOption_Location")));
     this.RadioButton_SortOption_Distance = ((System.Windows.Controls.RadioButton)(this.FindName("RadioButton_SortOption_Distance")));
     this.RadioButton_SortOption_Address  = ((System.Windows.Controls.RadioButton)(this.FindName("RadioButton_SortOption_Address")));
     this.Button_SortOption               = ((System.Windows.Controls.Button)(this.FindName("Button_SortOption")));
     this.Appbar_MapButton                = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("Appbar_MapButton")));
     this.Appbar_CompassButton            = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("Appbar_CompassButton")));
 }
Exemplo n.º 9
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/sdkLocalDatabaseCS;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.ApplicationTitle    = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.ContentPanel        = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.mainitempage        = ((Microsoft.Phone.Controls.Panorama)(this.FindName("mainitempage")));
     this.allToDoItemsListBox = ((System.Windows.Controls.ListBox)(this.FindName("allToDoItemsListBox")));
     this.gridCatinit         = ((System.Windows.Controls.Grid)(this.FindName("gridCatinit")));
     this.allcatimage         = ((System.Windows.Controls.Image)(this.FindName("allcatimage")));
     this.deleteListButton    = ((System.Windows.Controls.Button)(this.FindName("deleteListButton")));
     this.cat                 = ((System.Windows.Controls.ListBox)(this.FindName("cat")));
     this.myalllistUI         = ((System.Windows.Controls.ListBox)(this.FindName("myalllistUI")));
     this.srijonpopup         = ((System.Windows.Controls.Primitives.Popup)(this.FindName("srijonpopup")));
     this.poptextblock        = ((System.Windows.Controls.TextBlock)(this.FindName("poptextblock")));
     this.quantity            = ((System.Windows.Controls.TextBox)(this.FindName("quantity")));
     this.btn_continue        = ((System.Windows.Controls.Button)(this.FindName("btn_continue")));
     this.newTaskAppBarButton = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("newTaskAppBarButton")));
     this.newcat              = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("newcat")));
     this.GridtestButton      = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("GridtestButton")));
 }
Exemplo n.º 10
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/sdkSocketsCS;component/MainPage.xaml", System.UriKind.Relative));
     this.Main             = ((sdkSocketsCS.basepage)(this.FindName("Main")));
     this.LayoutRoot       = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel       = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.PageTitle        = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.ContentPanel     = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.tbStatus         = ((System.Windows.Controls.TextBlock)(this.FindName("tbStatus")));
     this.gBoard           = ((System.Windows.Controls.Grid)(this.FindName("gBoard")));
     this.tb_00            = ((System.Windows.Controls.TextBlock)(this.FindName("tb_00")));
     this.tb_01            = ((System.Windows.Controls.TextBlock)(this.FindName("tb_01")));
     this.tb_02            = ((System.Windows.Controls.TextBlock)(this.FindName("tb_02")));
     this.tb_10            = ((System.Windows.Controls.TextBlock)(this.FindName("tb_10")));
     this.tb_11            = ((System.Windows.Controls.TextBlock)(this.FindName("tb_11")));
     this.tb_12            = ((System.Windows.Controls.TextBlock)(this.FindName("tb_12")));
     this.spDiagnostics    = ((System.Windows.Controls.StackPanel)(this.FindName("spDiagnostics")));
     this.appbarSettings   = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("appbarSettings")));
     this.appbarHideDiag   = ((Microsoft.Phone.Shell.ApplicationBarMenuItem)(this.FindName("appbarHideDiag")));
 }
Exemplo n.º 11
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Offline%20Social;component/FeedsBrowser.xaml", System.UriKind.Relative));
     this.LayoutRoot      = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel    = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.pivot           = ((Microsoft.Phone.Controls.Pivot)(this.FindName("pivot")));
     this.header1         = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("header1")));
     this.FACEBOOK        = ((System.Windows.Controls.TextBlock)(this.FindName("FACEBOOK")));
     this.fbBrowser       = ((Microsoft.Phone.Controls.WebBrowser)(this.FindName("fbBrowser")));
     this.header2         = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("header2")));
     this.TWITTER         = ((System.Windows.Controls.TextBlock)(this.FindName("TWITTER")));
     this.twitterBrowser  = ((Microsoft.Phone.Controls.WebBrowser)(this.FindName("twitterBrowser")));
     this.header3         = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("header3")));
     this.LINKEDIN        = ((System.Windows.Controls.TextBlock)(this.FindName("LINKEDIN")));
     this.linkedinBrowser = ((Microsoft.Phone.Controls.WebBrowser)(this.FindName("linkedinBrowser")));
     this.BackButton      = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("BackButton")));
     this.HomeButton      = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("HomeButton")));
     this.RefreshButton   = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("RefreshButton")));
     this.ForwardButton   = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("ForwardButton")));
 }
Exemplo n.º 12
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/PivotApp1;component/MainPage.xaml", System.UriKind.Relative));
     this.myMainPage         = ((Microsoft.Phone.Controls.PhoneApplicationPage)(this.FindName("myMainPage")));
     this.spinner            = ((System.Windows.DataTemplate)(this.FindName("spinner")));
     this.OtteluOtsikko      = ((System.Windows.DataTemplate)(this.FindName("OtteluOtsikko")));
     this.BackFront          = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("BackFront")));
     this.VaihdaLohkoa       = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("VaihdaLohkoa")));
     this.Asetukset          = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("Asetukset")));
     this.LayoutRoot         = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.MainPivot          = ((Microsoft.Phone.Controls.Pivot)(this.FindName("MainPivot")));
     this.OttelutPivot       = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("OttelutPivot")));
     this.PaivanOttelutList  = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("PaivanOttelutList")));
     this.SarjataulukkoList  = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("SarjataulukkoList")));
     this.TilastotList       = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("TilastotList")));
     this.VanhatOttelutPivot = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("VanhatOttelutPivot")));
     this.VanhatOttelutList  = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("VanhatOttelutList")));
     this.TehopisteetList    = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("TehopisteetList")));
     this.PeliAika           = ((System.Windows.Controls.TextBlock)(this.FindName("PeliAika")));
     this.KotiJoukkue        = ((System.Windows.Controls.TextBlock)(this.FindName("KotiJoukkue")));
     this.PeliTulos          = ((System.Windows.Controls.TextBlock)(this.FindName("PeliTulos")));
     this.VierasJoukkue      = ((System.Windows.Controls.TextBlock)(this.FindName("VierasJoukkue")));
     this.OtteluEratulokset  = ((System.Windows.Controls.TextBlock)(this.FindName("OtteluEratulokset")));
     this.OtteluTorjunnat    = ((System.Windows.Controls.TextBlock)(this.FindName("OtteluTorjunnat")));
     this.OtteluGridList     = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("OtteluGridList")));
 }
Exemplo n.º 13
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/sdkVoiceAlarmClockWP8CS;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.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.ContentPanel     = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.TimeBlock        = ((System.Windows.Controls.TextBlock)(this.FindName("TimeBlock")));
     this.monTextBlock     = ((System.Windows.Controls.TextBlock)(this.FindName("monTextBlock")));
     this.tueTextBlock     = ((System.Windows.Controls.TextBlock)(this.FindName("tueTextBlock")));
     this.wedTextBlock     = ((System.Windows.Controls.TextBlock)(this.FindName("wedTextBlock")));
     this.thuTextBlock     = ((System.Windows.Controls.TextBlock)(this.FindName("thuTextBlock")));
     this.friTextBlock     = ((System.Windows.Controls.TextBlock)(this.FindName("friTextBlock")));
     this.satTextBlock     = ((System.Windows.Controls.TextBlock)(this.FindName("satTextBlock")));
     this.sunTextBlock     = ((System.Windows.Controls.TextBlock)(this.FindName("sunTextBlock")));
     this.hourHand         = ((System.Windows.Controls.Image)(this.FindName("hourHand")));
     this.minuteHand       = ((System.Windows.Controls.Image)(this.FindName("minuteHand")));
     this.secondHand       = ((System.Windows.Controls.Image)(this.FindName("secondHand")));
     this.alarmButton      = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("alarmButton")));
     this.settingsButton   = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("settingsButton")));
 }
Exemplo n.º 14
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/MetroFanfou;component/MainPage.xaml", System.UriKind.Relative));
     this.rootView       = ((System.Windows.Controls.Grid)(this.FindName("rootView")));
     this.TrayPanel      = ((System.Windows.Controls.StackPanel)(this.FindName("TrayPanel")));
     this.performanceBar = ((Microsoft.Phone.Controls.PerformanceProgressBar)(this.FindName("performanceBar")));
     this.imgLogo        = ((System.Windows.Controls.Image)(this.FindName("imgLogo")));
     this.tbAccountName  = ((System.Windows.Controls.TextBlock)(this.FindName("tbAccountName")));
     this.PivotMain      = ((Microsoft.Phone.Controls.Pivot)(this.FindName("PivotMain")));
     this.homeItem       = ((MetroFanfou.Controls.StatusList)(this.FindName("homeItem")));
     this.replyItem      = ((MetroFanfou.Controls.StatusList)(this.FindName("replyItem")));
     this.publicItem     = ((MetroFanfou.Controls.StatusList)(this.FindName("publicItem")));
     this.mSetting       = ((Microsoft.Phone.Shell.ApplicationBarMenuItem)(this.FindName("mSetting")));
     this.mLogout        = ((Microsoft.Phone.Shell.ApplicationBarMenuItem)(this.FindName("mLogout")));
     this.mAbout         = ((Microsoft.Phone.Shell.ApplicationBarMenuItem)(this.FindName("mAbout")));
     this.mHelp          = ((Microsoft.Phone.Shell.ApplicationBarMenuItem)(this.FindName("mHelp")));
     this.mExit          = ((Microsoft.Phone.Shell.ApplicationBarMenuItem)(this.FindName("mExit")));
     this.btnReload      = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnReload")));
     this.btnAdd         = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnAdd")));
     this.btnProfile     = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnProfile")));
     this.btnSearch      = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnSearch")));
 }
Exemplo n.º 15
0
 public static IApplicationBarIconButton InsertButton(this IApplicationBar bar, int index, string imageUrl, string text, ICommand cmd)
 {
     var btn = new ApplicationBarIconButton { IconUri = new Uri(imageUrl, UriKind.Relative), Text = text };
     btn.Click += (s, e) => cmd.Execute(null);
     bar.Buttons.Insert(index, btn);
     return btn;
 }
Exemplo n.º 16
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Transl8;component/Pages/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot        = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.txtToTrans        = ((System.Windows.Controls.TextBox)(this.FindName("txtToTrans")));
     this.btnTraslate       = ((System.Windows.Controls.Button)(this.FindName("btnTraslate")));
     this.lblTranslatedText = ((System.Windows.Controls.TextBlock)(this.FindName("lblTranslatedText")));
     this.btnFrom           = ((System.Windows.Controls.Button)(this.FindName("btnFrom")));
     this.btnTo             = ((System.Windows.Controls.Button)(this.FindName("btnTo")));
     this.imgSpeak          = ((System.Windows.Controls.Image)(this.FindName("imgSpeak")));
     this.ListMT            = ((System.Windows.Controls.ListBox)(this.FindName("ListMT")));
     this.popup             = ((System.Windows.Controls.Primitives.Popup)(this.FindName("popup")));
     this.eng        = ((System.Windows.Controls.Button)(this.FindName("eng")));
     this.viet       = ((System.Windows.Controls.Button)(this.FindName("viet")));
     this.span       = ((System.Windows.Controls.Button)(this.FindName("span")));
     this.china      = ((System.Windows.Controls.Button)(this.FindName("china")));
     this.hindi      = ((System.Windows.Controls.Button)(this.FindName("hindi")));
     this.russian    = ((System.Windows.Controls.Button)(this.FindName("russian")));
     this.french     = ((System.Windows.Controls.Button)(this.FindName("french")));
     this.korean     = ((System.Windows.Controls.Button)(this.FindName("korean")));
     this.japanese   = ((System.Windows.Controls.Button)(this.FindName("japanese")));
     this.german     = ((System.Windows.Controls.Button)(this.FindName("german")));
     this.SpeakAppBr = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("SpeakAppBr")));
 }
Exemplo n.º 17
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/BookMemory;component/AllBookListPage.xaml", System.UriKind.Relative));
     this.MyCollection                          = ((System.Windows.Data.CollectionViewSource)(this.FindName("MyCollection")));
     this.LayoutRoot                            = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel                          = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.Pivot_ListPage                        = ((Microsoft.Phone.Controls.Pivot)(this.FindName("Pivot_ListPage")));
     this.PivotItem1                            = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("PivotItem1")));
     this.ListBox_Books                         = ((System.Windows.Controls.ListBox)(this.FindName("ListBox_Books")));
     this.Grid_SearchBox                        = ((System.Windows.Controls.Grid)(this.FindName("Grid_SearchBox")));
     this.TextBox_SearchBox                     = ((Microsoft.Phone.Controls.PhoneTextBox)(this.FindName("TextBox_SearchBox")));
     this.Grid_SortOption                       = ((System.Windows.Controls.Grid)(this.FindName("Grid_SortOption")));
     this.RadioButton_SortOption_Title          = ((System.Windows.Controls.RadioButton)(this.FindName("RadioButton_SortOption_Title")));
     this.RadioButton_SortOption_Author         = ((System.Windows.Controls.RadioButton)(this.FindName("RadioButton_SortOption_Author")));
     this.RadioButton_SortOption_Publisher      = ((System.Windows.Controls.RadioButton)(this.FindName("RadioButton_SortOption_Publisher")));
     this.RadioButton_SortOption_PublishDate    = ((System.Windows.Controls.RadioButton)(this.FindName("RadioButton_SortOption_PublishDate")));
     this.RadioButton_SortOption_CreateDate     = ((System.Windows.Controls.RadioButton)(this.FindName("RadioButton_SortOption_CreateDate")));
     this.RadioButton_SortOption_ModifyDate     = ((System.Windows.Controls.RadioButton)(this.FindName("RadioButton_SortOption_ModifyDate")));
     this.RadioButton_SortOption_OpenDetailDate = ((System.Windows.Controls.RadioButton)(this.FindName("RadioButton_SortOption_OpenDetailDate")));
     this.RadioButton_SortOption_Rating         = ((System.Windows.Controls.RadioButton)(this.FindName("RadioButton_SortOption_Rating")));
     this.Button_SortOption                     = ((System.Windows.Controls.Button)(this.FindName("Button_SortOption")));
     this.AddButton = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("AddButton")));
 }
Exemplo n.º 18
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SampleSPWinPhoneApp;component/Views/DisplayForm.xaml", System.UriKind.Relative));
     this.ViewPage              = ((Microsoft.Phone.Controls.PhoneApplicationPage)(this.FindName("ViewPage")));
     this.LayoutRoot            = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.progressBar           = ((System.Windows.Controls.ProgressBar)(this.FindName("progressBar")));
     this.txtTitle              = ((System.Windows.Controls.TextBlock)(this.FindName("txtTitle")));
     this.txtModified           = ((System.Windows.Controls.TextBlock)(this.FindName("txtModified")));
     this.txtCreated            = ((System.Windows.Controls.TextBlock)(this.FindName("txtCreated")));
     this.txtAuthor             = ((System.Windows.Controls.TextBlock)(this.FindName("txtAuthor")));
     this.txtEditor             = ((System.Windows.Controls.TextBlock)(this.FindName("txtEditor")));
     this.txt_UIVersionString   = ((System.Windows.Controls.TextBlock)(this.FindName("txt_UIVersionString")));
     this.txtAttachments        = ((System.Windows.Controls.TextBlock)(this.FindName("txtAttachments")));
     this.txtLocation           = ((System.Windows.Controls.TextBlock)(this.FindName("txtLocation")));
     this.txtEventDate          = ((System.Windows.Controls.TextBlock)(this.FindName("txtEventDate")));
     this.txtEndDate            = ((System.Windows.Controls.TextBlock)(this.FindName("txtEndDate")));
     this.txtDescription        = ((System.Windows.Controls.TextBlock)(this.FindName("txtDescription")));
     this.txtParticipantsPicker = ((System.Windows.Controls.TextBlock)(this.FindName("txtParticipantsPicker")));
     this.txtCategory           = ((System.Windows.Controls.TextBlock)(this.FindName("txtCategory")));
     this.btnEdit   = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnEdit")));
     this.btnDelete = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnDelete")));
     this.btnBack   = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnBack")));
 }
Exemplo n.º 19
0
        public AddFilePage()
        {
            InitializeComponent();

            // Set Pin Infor app bar button and Cloud Setting selection.
            this.PinInfoAppBarButton = (ApplicationBarIconButton)ApplicationBar.Buttons[PIN_INFO_APP_BAR_BUTTON_INDEX];
            List<IStorageManager> storageList = StorageHelper.GetStorageList();

            base.SetStorageBarMenuItem(out this.AppBarMenuItems, AppBarMenuItem_Click);
            //this.AppBarMenuItems = new ApplicationBarMenuItem[storageList.Count];
            //for (var i = 0; i < storageList.Count; i++)
            //{
            //    this.AppBarMenuItems[i] = new ApplicationBarMenuItem();
            //    this.AppBarMenuItems[i].Text = storageList[i].GetStorageName();
            //    this.AppBarMenuItems[i].Click += AppBarMenuItem_Click;
            //}
            

            // Check main platform and set current platform index.
            //this.CurrentPlatformIndex = (int)App.ApplicationSettings[StorageAccount.ACCOUNT_MAIN_PLATFORM_TYPE_KEY];


            // Set Datacontext
            uiPinInfoList.DataContext = this.FileObjectViewModel;

        }
Exemplo n.º 20
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/BookMemory;component/DetailPage.xaml", System.UriKind.Relative));
     this.LayoutRoot                = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.Panorama                  = ((Microsoft.Phone.Controls.Panorama)(this.FindName("Panorama")));
     this.Image_BookImage           = ((System.Windows.Controls.Image)(this.FindName("Image_BookImage")));
     this.transform                 = ((System.Windows.Media.CompositeTransform)(this.FindName("transform")));
     this.TextBox_Title             = ((Microsoft.Phone.Controls.PhoneTextBox)(this.FindName("TextBox_Title")));
     this.TextBox_EAN               = ((Microsoft.Phone.Controls.PhoneTextBox)(this.FindName("TextBox_EAN")));
     this.TextBox_Authors           = ((Microsoft.Phone.Controls.PhoneTextBox)(this.FindName("TextBox_Authors")));
     this.TextBox_Publisher         = ((Microsoft.Phone.Controls.PhoneTextBox)(this.FindName("TextBox_Publisher")));
     this.DatePicker_Publish        = ((Microsoft.Phone.Controls.DatePicker)(this.FindName("DatePicker_Publish")));
     this.TextBox_Price             = ((Microsoft.Phone.Controls.PhoneTextBox)(this.FindName("TextBox_Price")));
     this.TextBox_Currency          = ((Microsoft.Phone.Controls.PhoneTextBox)(this.FindName("TextBox_Currency")));
     this.TextBox_Language          = ((Microsoft.Phone.Controls.PhoneTextBox)(this.FindName("TextBox_Language")));
     this.TextBox_Type              = ((Microsoft.Phone.Controls.PhoneTextBox)(this.FindName("TextBox_Type")));
     this.Grid_Notice               = ((System.Windows.Controls.Grid)(this.FindName("Grid_Notice")));
     this.TextBlock_Notice          = ((System.Windows.Controls.TextBlock)(this.FindName("TextBlock_Notice")));
     this.ListPicker_Status         = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("ListPicker_Status")));
     this.Rating_Rate               = ((Microsoft.Phone.Controls.Rating)(this.FindName("Rating_Rate")));
     this.DatePicker_Purchase       = ((Microsoft.Phone.Controls.DatePicker)(this.FindName("DatePicker_Purchase")));
     this.DatePicker_StartRead      = ((Microsoft.Phone.Controls.DatePicker)(this.FindName("DatePicker_StartRead")));
     this.DatePicker_FinishRead     = ((Microsoft.Phone.Controls.DatePicker)(this.FindName("DatePicker_FinishRead")));
     this.TextBlock_CreateDate      = ((System.Windows.Controls.TextBlock)(this.FindName("TextBlock_CreateDate")));
     this.TextBlock_CreateDayOfWeek = ((System.Windows.Controls.TextBlock)(this.FindName("TextBlock_CreateDayOfWeek")));
     this.ScrollViewer_Note         = ((System.Windows.Controls.ScrollViewer)(this.FindName("ScrollViewer_Note")));
     this.TextBox_Note              = ((Microsoft.Phone.Controls.PhoneTextBox)(this.FindName("TextBox_Note")));
     this.SaveButton                = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("SaveButton")));
     this.DownloadButton            = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("DownloadButton")));
 }
Exemplo n.º 21
0
        public GroupDetails()
        {
            InitializeComponent();

            _cmdHome = (ApplicationBarIconButton)
                ApplicationBar.Buttons[0];
        }
Exemplo n.º 22
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Voice%20Changer;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.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.UserHelp         = ((System.Windows.Controls.TextBlock)(this.FindName("UserHelp")));
     this.ContentPanel     = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.StatusImage      = ((System.Windows.Controls.Image)(this.FindName("StatusImage")));
     this.pitchSlider      = ((System.Windows.Controls.Slider)(this.FindName("pitchSlider")));
     this.openButton       = ((System.Windows.Controls.Button)(this.FindName("openButton")));
     this.helpButton       = ((System.Windows.Controls.Button)(this.FindName("helpButton")));
     this.vaderImage       = ((System.Windows.Controls.Image)(this.FindName("vaderImage")));
     this.mouseImage       = ((System.Windows.Controls.Image)(this.FindName("mouseImage")));
     this.textBlock2       = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock2")));
     this.saveCanvas       = ((System.Windows.Controls.Canvas)(this.FindName("saveCanvas")));
     this.FileNameTextBox  = ((System.Windows.Controls.TextBox)(this.FindName("FileNameTextBox")));
     this.textBlock1       = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock1")));
     this.saveButton2      = ((System.Windows.Controls.Button)(this.FindName("saveButton2")));
     this.cancelButton     = ((System.Windows.Controls.Button)(this.FindName("cancelButton")));
     this.recordButton     = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("recordButton")));
     this.playButton       = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("playButton")));
     this.stopButton       = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("stopButton")));
     this.saveButton       = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("saveButton")));
 }
Exemplo n.º 23
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/HFR7;component/HFRrehostMP.xaml", System.UriKind.Relative));
     this.HFRrehostPage            = ((Microsoft.Phone.Controls.PhoneApplicationPage)(this.FindName("HFRrehostPage")));
     this.LayoutRoot               = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel               = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.ApplicationTitle         = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.PageTitle                = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.ContentPanel             = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.choosePhotoStackPanel    = ((System.Windows.Controls.StackPanel)(this.FindName("choosePhotoStackPanel")));
     this.choosePicButton          = ((System.Windows.Controls.Button)(this.FindName("choosePicButton")));
     this.takePicButton            = ((System.Windows.Controls.Button)(this.FindName("takePicButton")));
     this.waitStackPanel           = ((System.Windows.Controls.StackPanel)(this.FindName("waitStackPanel")));
     this.globalProgressBar        = ((Microsoft.Phone.Controls.PerformanceProgressBar)(this.FindName("globalProgressBar")));
     this.messageWaitTextBlock     = ((System.Windows.Controls.TextBlock)(this.FindName("messageWaitTextBlock")));
     this.copyUrlStackPanel        = ((System.Windows.Controls.StackPanel)(this.FindName("copyUrlStackPanel")));
     this.reelleSansLienTextBox    = ((System.Windows.Controls.TextBox)(this.FindName("reelleSansLienTextBox")));
     this.previewAvecLienTextBox   = ((System.Windows.Controls.TextBox)(this.FindName("previewAvecLienTextBox")));
     this.miniatureAvecLienTextBox = ((System.Windows.Controls.TextBox)(this.FindName("miniatureAvecLienTextBox")));
     this.urlTextBox               = ((System.Windows.Controls.TextBox)(this.FindName("urlTextBox")));
     this.retourButton             = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("retourButton")));
 }
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/MyLocalPharmacy;component/View/MapServices.xaml", System.UriKind.Relative));
     this.LayoutRoot      = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.popupDetails    = ((System.Windows.Controls.Primitives.Popup)(this.FindName("popupDetails")));
     this.tbkName         = ((System.Windows.Controls.TextBlock)(this.FindName("tbkName")));
     this.tbkAddressLine1 = ((System.Windows.Controls.TextBlock)(this.FindName("tbkAddressLine1")));
     this.tbkAddressLine2 = ((System.Windows.Controls.TextBlock)(this.FindName("tbkAddressLine2")));
     this.tbkAddressLine3 = ((System.Windows.Controls.TextBlock)(this.FindName("tbkAddressLine3")));
     this.tbkAddressLine4 = ((System.Windows.Controls.TextBlock)(this.FindName("tbkAddressLine4")));
     this.tbkAddressLine5 = ((System.Windows.Controls.TextBlock)(this.FindName("tbkAddressLine5")));
     this.tbkAddressLine6 = ((System.Windows.Controls.TextBlock)(this.FindName("tbkAddressLine6")));
     this.callStack       = ((System.Windows.Controls.StackPanel)(this.FindName("callStack")));
     this.tbkphonenumber  = ((System.Windows.Controls.TextBlock)(this.FindName("tbkphonenumber")));
     this.directionStack  = ((System.Windows.Controls.StackPanel)(this.FindName("directionStack")));
     this.imggetdirec     = ((System.Windows.Controls.Image)(this.FindName("imggetdirec")));
     this.tbkdir          = ((System.Windows.Controls.TextBlock)(this.FindName("tbkdir")));
     this.tbkTitle        = ((System.Windows.Controls.TextBlock)(this.FindName("tbkTitle")));
     this.ContentPanel    = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.progressBarMap  = ((System.Windows.Controls.ProgressBar)(this.FindName("progressBarMap")));
     this.tbkHint         = ((System.Windows.Controls.TextBlock)(this.FindName("tbkHint")));
     this.tbxSearch       = ((Microsoft.Phone.Controls.PhoneTextBox)(this.FindName("tbxSearch")));
     this.tbkNoResult     = ((System.Windows.Controls.TextBlock)(this.FindName("tbkNoResult")));
     this.popupNoInternet = ((System.Windows.Controls.Primitives.Popup)(this.FindName("popupNoInternet")));
     this.btnNointernetOk = ((System.Windows.Controls.Button)(this.FindName("btnNointernetOk")));
     this.searchButton    = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("searchButton")));
 }
Exemplo n.º 25
0
        public Settings ()
            {
            InitializeComponent ();

            if ((Visibility)Resources["PhoneLightThemeVisibility"] == Visibility.Visible)
                {
                _saveButton = new ApplicationBarIconButton (new Uri ("Images/Save_Light.png", UriKind.RelativeOrAbsolute));
                }
            else if ((Visibility)Resources["PhoneDarkThemeVisibility"] == Visibility.Visible)
                {
                _saveButton = new ApplicationBarIconButton (new Uri ("Images/Save_Dark.png", UriKind.RelativeOrAbsolute));
                }

            _saveButton.Click += Save_Button_Click;
            _saveButton.Text = "save";
            ApplicationBar.Buttons.Add (_saveButton);


            _secondMinutePicker.ItemsSource = new List<string> () { Constants.SECOND, Constants.MINUTE };

            var selectedOption = IsolatedStorageSettings.ApplicationSettings[Constants.MINUTE_SECOND_KEY].ToString ();
            _secondMinutePicker.SelectedItem = selectedOption;

            int bufferLength = int.Parse (IsolatedStorageSettings.ApplicationSettings[Constants.TOTAL_SECONDS].ToString ());

            if (selectedOption == Constants.MINUTE)
                bufferLength = bufferLength / 60;

            _timeTextBox.Text = bufferLength.ToString ();
            }
Exemplo n.º 26
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Studentus;component/NewTeacher.xaml", System.UriKind.Relative));
     this.LayoutRoot       = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel       = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.PageTitle        = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.svw                  = ((System.Windows.Controls.ScrollViewer)(this.FindName("svw")));
     this.ContentPanel         = ((System.Windows.Controls.StackPanel)(this.FindName("ContentPanel")));
     this.textBlock1           = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock1")));
     this.teacherName          = ((System.Windows.Controls.TextBox)(this.FindName("teacherName")));
     this.textBlock2           = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock2")));
     this.teacherSurname       = ((System.Windows.Controls.TextBox)(this.FindName("teacherSurname")));
     this.textBlock3           = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock3")));
     this.teacherTitle         = ((System.Windows.Controls.TextBox)(this.FindName("teacherTitle")));
     this.textBlock4           = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock4")));
     this.teacherEmail         = ((System.Windows.Controls.TextBox)(this.FindName("teacherEmail")));
     this.textBlock5           = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock5")));
     this.teacherTel           = ((System.Windows.Controls.TextBox)(this.FindName("teacherTel")));
     this.textBlock6           = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock6")));
     this.teacherConsultation  = ((System.Windows.Controls.TextBox)(this.FindName("teacherConsultation")));
     this.cancelBarButton      = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("cancelBarButton")));
     this.newSemesterBarButton = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("newSemesterBarButton")));
 }
Exemplo n.º 27
0
        public MoveTarget()
        {
            InitializeComponent();

            _cmdMove = AppButton(0);
            _cmdMove.Text = Strings.MoveTarget_MoveHere;
        }
Exemplo n.º 28
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/MyLocalPharmacy;component/View/PillReminder.xaml", System.UriKind.Relative));
     this.LayoutRoot              = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel              = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.PopupSearch             = ((System.Windows.Controls.Primitives.Popup)(this.FindName("PopupSearch")));
     this.acbDrugSearch           = ((Microsoft.Phone.Controls.AutoCompleteBox)(this.FindName("acbDrugSearch")));
     this.lstDrugSearch           = ((System.Windows.Controls.ListBox)(this.FindName("lstDrugSearch")));
     this.popupConfirm            = ((System.Windows.Controls.Primitives.Popup)(this.FindName("popupConfirm")));
     this.btnPopupcancel          = ((System.Windows.Controls.Button)(this.FindName("btnPopupcancel")));
     this.btnPopupOk              = ((System.Windows.Controls.Button)(this.FindName("btnPopupOk")));
     this.popupConfirmLeavePage   = ((System.Windows.Controls.Primitives.Popup)(this.FindName("popupConfirmLeavePage")));
     this.btnPopupcancelLeavePage = ((System.Windows.Controls.Button)(this.FindName("btnPopupcancelLeavePage")));
     this.btnPopupOkLeavePage     = ((System.Windows.Controls.Button)(this.FindName("btnPopupOkLeavePage")));
     this.ContentPanel            = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.toggleName              = ((Microsoft.Phone.Controls.ToggleSwitch)(this.FindName("toggleName")));
     this.dpkDate           = ((Microsoft.Phone.Controls.DatePicker)(this.FindName("dpkDate")));
     this.tpkTime           = ((Microsoft.Phone.Controls.TimePicker)(this.FindName("tpkTime")));
     this.tbxDrugSearch     = ((Microsoft.Phone.Controls.PhoneTextBox)(this.FindName("tbxDrugSearch")));
     this.imgSearch         = ((System.Windows.Controls.Image)(this.FindName("imgSearch")));
     this.tbxQty            = ((Microsoft.Phone.Controls.PhoneTextBox)(this.FindName("tbxQty")));
     this.PillsReminderList = ((System.Windows.Controls.ListBox)(this.FindName("PillsReminderList")));
     this.btnSave           = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnSave")));
 }
Exemplo n.º 29
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/DialedIn;component/View/TasksDetailView.xaml", System.UriKind.Relative));
     this.LayoutRoot           = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel           = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.PageTitle            = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.TaskTitleTextBlock   = ((System.Windows.Controls.TextBlock)(this.FindName("TaskTitleTextBlock")));
     this.ContentPanel         = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.TaskDescriptionBlock = ((System.Windows.Controls.TextBlock)(this.FindName("TaskDescriptionBlock")));
     this.taskImage            = ((System.Windows.Controls.Image)(this.FindName("taskImage")));
     this.AssignedToTextBlock  = ((System.Windows.Controls.TextBlock)(this.FindName("AssignedToTextBlock")));
     this.LocationTextBlock    = ((System.Windows.Controls.TextBlock)(this.FindName("LocationTextBlock")));
     this.textBlock1           = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock1")));
     this.textBlock2           = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock2")));
     this.DueDateTBl           = ((System.Windows.Controls.TextBlock)(this.FindName("DueDateTBl")));
     this.DueDateTBo           = ((System.Windows.Controls.TextBlock)(this.FindName("DueDateTBo")));
     this.textBlock3           = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock3")));
     this.complete_button      = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("complete_button")));
     this.map_button           = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("map_button")));
 }
Exemplo n.º 30
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/RockPaperScissors;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.ContentPanel       = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.ScorePanel         = ((System.Windows.Controls.Grid)(this.FindName("ScorePanel")));
     this.textPuntuacion     = ((System.Windows.Controls.TextBlock)(this.FindName("textPuntuacion")));
     this.Resultados         = ((System.Windows.Controls.Grid)(this.FindName("Resultados")));
     this.textVictorias      = ((System.Windows.Controls.TextBlock)(this.FindName("textVictorias")));
     this.textVictoriasValor = ((System.Windows.Controls.TextBlock)(this.FindName("textVictoriasValor")));
     this.textEmpates        = ((System.Windows.Controls.TextBlock)(this.FindName("textEmpates")));
     this.textEmpatesValor   = ((System.Windows.Controls.TextBlock)(this.FindName("textEmpatesValor")));
     this.textDerrotas       = ((System.Windows.Controls.TextBlock)(this.FindName("textDerrotas")));
     this.textDerrotasValor  = ((System.Windows.Controls.TextBlock)(this.FindName("textDerrotasValor")));
     this.BoardPanel         = ((System.Windows.Controls.Grid)(this.FindName("BoardPanel")));
     this.imagenUsuario      = ((System.Windows.Controls.Image)(this.FindName("imagenUsuario")));
     this.imagenRival        = ((System.Windows.Controls.Image)(this.FindName("imagenRival")));
     this.textResultado      = ((System.Windows.Controls.TextBlock)(this.FindName("textResultado")));
     this.botonOtraPartida   = ((System.Windows.Controls.Button)(this.FindName("botonOtraPartida")));
     this.ButtonsPanel       = ((System.Windows.Controls.Grid)(this.FindName("ButtonsPanel")));
     this.botonPiedra        = ((System.Windows.Controls.Button)(this.FindName("botonPiedra")));
     this.botonPapel         = ((System.Windows.Controls.Button)(this.FindName("botonPapel")));
     this.botonTijera        = ((System.Windows.Controls.Button)(this.FindName("botonTijera")));
     this.reiniciar          = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("reiniciar")));
 }
Exemplo n.º 31
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 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);
        }
Exemplo n.º 32
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Zub%20App;component/DetailsPage.xaml", System.UriKind.Relative));
     this.LayoutRoot     = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.dueDateText    = ((System.Windows.Controls.TextBlock)(this.FindName("dueDateText")));
     this.PageTitle      = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.TitlePanel     = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.Title          = ((System.Windows.Controls.TextBlock)(this.FindName("Title")));
     this.ListTitle      = ((System.Windows.Controls.TextBlock)(this.FindName("ListTitle")));
     this.ContentPanel   = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.NotesText      = ((System.Windows.Controls.TextBlock)(this.FindName("NotesText")));
     this.myScroll       = ((System.Windows.Controls.ScrollViewer)(this.FindName("myScroll")));
     this.ContentText    = ((System.Windows.Controls.TextBlock)(this.FindName("ContentText")));
     this.CreatedText    = ((System.Windows.Controls.TextBlock)(this.FindName("CreatedText")));
     this.createdDate    = ((System.Windows.Controls.TextBlock)(this.FindName("createdDate")));
     this.completeButton = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("completeButton")));
     this.editButton     = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("editButton")));
     this.appbar_button1 = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("appbar_button1")));
     this.appbar_button3 = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("appbar_button3")));
 }
		//----------------------------------------------------------------------
		#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();
		}
Exemplo n.º 34
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);
        }
Exemplo n.º 35
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/GPS;component/New.xaml", System.UriKind.Relative));
     this.LayoutRoot     = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel     = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.Title_New      = ((System.Windows.Controls.TextBlock)(this.FindName("Title_New")));
     this.Title_Edit     = ((System.Windows.Controls.TextBlock)(this.FindName("Title_Edit")));
     this.ContentPanel   = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.textBlock1     = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock1")));
     this.Title          = ((System.Windows.Controls.TextBox)(this.FindName("Title")));
     this.Location_Text  = ((System.Windows.Controls.TextBlock)(this.FindName("Location_Text")));
     this.Location       = ((System.Windows.Controls.TextBox)(this.FindName("Location")));
     this.useMyLocation  = ((System.Windows.Controls.TextBlock)(this.FindName("useMyLocation")));
     this.Radius_Text    = ((System.Windows.Controls.TextBlock)(this.FindName("Radius_Text")));
     this.Radius         = ((System.Windows.Controls.TextBox)(this.FindName("Radius")));
     this.textBlock3     = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock3")));
     this.Type           = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("Type")));
     this.RingTones_Text = ((System.Windows.Controls.TextBlock)(this.FindName("RingTones_Text")));
     this.Ring_Tones     = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("Ring_Tones")));
     this.Note_Text      = ((System.Windows.Controls.TextBlock)(this.FindName("Note_Text")));
     this.Note           = ((System.Windows.Controls.TextBox)(this.FindName("Note")));
     this.lb_personal    = ((System.Windows.Controls.ListBox)(this.FindName("lb_personal")));
     this.Save           = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("Save")));
     this.Cancel         = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("Cancel")));
     this.Delete         = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("Delete")));
 }
        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;
        }
Exemplo n.º 37
0
        public MainPage()
        {
            InitializeComponent();

            _aboutMenuItem.Text = "about";
            _aboutMenuItem.Click += new EventHandler(AboutMenuItem_Click);

            ApplicationBar.MenuItems.Add(_aboutMenuItem);

            DataContext = _dataContext;

            _settingsButton = ApplicationBar.Buttons[0] as ApplicationBarIconButton;
            _browseButton = ApplicationBar.Buttons[1] as ApplicationBarIconButton;

            _progressIndicator.IsIndeterminate = true;

            if (_dataContext.Communication.SupportsTriggeredDiscovery && _dataContext.Communication.SupportsBrowseDiscovery)
            {
                GuideTextBlock.Text = "Tap other device to connect directly or search for devices running this app and having Bluetooth enabled by clicking on the search icon. For tap to work, tap+send has to be turned on in the phone settings.";
            }
            else if (_dataContext.Communication.SupportsTriggeredDiscovery)
            {
                GuideTextBlock.Text = "Tap other device to connect.";
            }
            else if (_dataContext.Communication.SupportsBrowseDiscovery)
            {
                GuideTextBlock.Text = "Search for devices running this app and having Bluetooth enabled by clicking on the search icon.";
            }
            else
            {
                GuideTextBlock.Text = "Unfortunately it seems that your device does not support establishing proximity connections.";
            }
        }
Exemplo n.º 38
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Rayzit;component/MainPage.xaml", System.UriKind.Relative));
     this.NewRayzAppBarButton               = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("NewRayzAppBarButton")));
     this.RefreshRayzAppBarButton           = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("RefreshRayzAppBarButton")));
     this.FilterBeamsAppBarButton           = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("FilterBeamsAppBarButton")));
     this.NewRayz2AppBarButton              = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("NewRayz2AppBarButton")));
     this.RefreshStarredButton              = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("RefreshStarredButton")));
     this.SelectBeamsFavoritesAppBarrButton = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("SelectBeamsFavoritesAppBarrButton")));
     this.DeleteBeamsFavoriteAppBarButton   = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("DeleteBeamsFavoriteAppBarButton")));
     this.LayoutRoot          = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel        = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.SelectionTitle      = ((System.Windows.Controls.TextBlock)(this.FindName("SelectionTitle")));
     this.ImageBar            = ((System.Windows.Controls.ListBox)(this.FindName("ImageBar")));
     this.ContentPivot        = ((Microsoft.Phone.Controls.Pivot)(this.FindName("ContentPivot")));
     this.LoadingBarsSp       = ((System.Windows.Controls.StackPanel)(this.FindName("LoadingBarsSp")));
     this.LiveRayzList        = ((Rayzit.Resources.HelperClasses.WrapLongListSelector)(this.FindName("LiveRayzList")));
     this.LoadingBarsSpRecent = ((System.Windows.Controls.StackPanel)(this.FindName("LoadingBarsSpRecent")));
     this.RecentLiveRayzList  = ((Rayzit.Resources.HelperClasses.WrapLongListSelector)(this.FindName("RecentLiveRayzList")));
     this.LoadingBarsSpS      = ((System.Windows.Controls.StackPanel)(this.FindName("LoadingBarsSpS")));
     this.NoStarredGrid       = ((System.Windows.Controls.Grid)(this.FindName("NoStarredGrid")));
     this.StarredRayzList     = ((Microsoft.Phone.Controls.LongListMultiSelector)(this.FindName("StarredRayzList")));
 }
        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);
        }
Exemplo n.º 40
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/WeatherLite;component/More.xaml", System.UriKind.Relative));
     this.add_new      = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("add_new")));
     this.remove       = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("remove")));
     this.LayoutRoot   = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.fBlocks      = ((System.Windows.Controls.Grid)(this.FindName("fBlocks")));
     this.fcity        = ((System.Windows.Controls.TextBlock)(this.FindName("fcity")));
     this.fcountry     = ((System.Windows.Controls.TextBlock)(this.FindName("fcountry")));
     this.ftemp        = ((System.Windows.Controls.TextBlock)(this.FindName("ftemp")));
     this.fvcity       = ((System.Windows.Controls.TextBlock)(this.FindName("fvcity")));
     this.fvcountry    = ((System.Windows.Controls.TextBlock)(this.FindName("fvcountry")));
     this.fvtemp       = ((System.Windows.Controls.TextBlock)(this.FindName("fvtemp")));
     this.fmintemp     = ((System.Windows.Controls.TextBlock)(this.FindName("fmintemp")));
     this.fmaxtemp     = ((System.Windows.Controls.TextBlock)(this.FindName("fmaxtemp")));
     this.fwind        = ((System.Windows.Controls.TextBlock)(this.FindName("fwind")));
     this.fvmintemp    = ((System.Windows.Controls.TextBlock)(this.FindName("fvmintemp")));
     this.fvmaxtemp    = ((System.Windows.Controls.TextBlock)(this.FindName("fvmaxtemp")));
     this.fvwind       = ((System.Windows.Controls.TextBlock)(this.FindName("fvwind")));
 }
        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);

        }
Exemplo n.º 42
0
        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);
        }
Exemplo n.º 43
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/WPDictionary;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.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.PageTitle        = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.meSpeak          = ((System.Windows.Controls.MediaElement)(this.FindName("meSpeak")));
     this.ContentPanel     = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.lPickerFrom      = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("lPickerFrom")));
     this.lPickerTo        = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("lPickerTo")));
     this.ImgNext          = ((System.Windows.Controls.Image)(this.FindName("ImgNext")));
     this.txtBoxFromMsg    = ((System.Windows.Controls.TextBox)(this.FindName("txtBoxFromMsg")));
     this.txtBoxToMsg      = ((System.Windows.Controls.TextBox)(this.FindName("txtBoxToMsg")));
     this.txtError         = ((System.Windows.Controls.TextBlock)(this.FindName("txtError")));
     this.adControl1       = ((Microsoft.Advertising.Mobile.UI.AdControl)(this.FindName("adControl1")));
     this.separator1       = ((Microsoft.Phone.Controls.Separator)(this.FindName("separator1")));
     this.Translate        = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("Translate")));
     this.Switch           = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("Switch")));
     this.Speak            = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("Speak")));
 }
        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;
        }
Exemplo n.º 45
0
        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);
        }
Exemplo n.º 46
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;
 }
Exemplo n.º 47
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);
            }
        }
Exemplo n.º 48
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/EnUcuzUrun;component/PivotPageEnUcuz.xaml", System.UriKind.Relative));
     this.LayoutRoot               = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.txtAd                    = ((System.Windows.Controls.TextBlock)(this.FindName("txtAd")));
     this.txtMahalle               = ((System.Windows.Controls.TextBlock)(this.FindName("txtMahalle")));
     this.lstKullanici             = ((System.Windows.Controls.ListBox)(this.FindName("lstKullanici")));
     this.lstMarketlerim           = ((System.Windows.Controls.ListBox)(this.FindName("lstMarketlerim")));
     this.ContentPanel             = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.lpkMahalle               = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("lpkMahalle")));
     this.lpkMarket                = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("lpkMarket")));
     this.lstSepetimUrunler        = ((System.Windows.Controls.ListBox)(this.FindName("lstSepetimUrunler")));
     this.lstSepetimUrunlerSecilen = ((System.Windows.Controls.ListBox)(this.FindName("lstSepetimUrunlerSecilen")));
     this.lstEnUcuz                = ((System.Windows.Controls.ListBox)(this.FindName("lstEnUcuz")));
     this.btnUcuzCikis             = ((System.Windows.Controls.Button)(this.FindName("btnUcuzCikis")));
     this.btnEnUcuzGor             = ((System.Windows.Controls.Button)(this.FindName("btnEnUcuzGor")));
     this.txbFiyatToplam           = ((System.Windows.Controls.TextBlock)(this.FindName("txbFiyatToplam")));
     this.txtYeniFiyat             = ((Microsoft.Phone.Controls.PhoneTextBox)(this.FindName("txtYeniFiyat")));
     this.btnGuncelleFiyat         = ((System.Windows.Controls.Button)(this.FindName("btnGuncelleFiyat")));
     this.lstUrunlerim             = ((System.Windows.Controls.ListBox)(this.FindName("lstUrunlerim")));
     this.lstMarketlerimProfil     = ((System.Windows.Controls.ListBox)(this.FindName("lstMarketlerimProfil")));
     this.btnSepeteEkle            = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnSepeteEkle")));
     this.btnSepettenÇıkar         = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnSepettenÇıkar")));
     this.btnPaylasimSil           = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnPaylasimSil")));
     this.btnPaylasimGuncel        = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnPaylasimGuncel")));
     this.btnPaylasimaGit          = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnPaylasimaGit")));
 }
Exemplo n.º 49
0
        //生成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);


        } 
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            ApplicationBarIconButton addTaskDetailButton = new ApplicationBarIconButton();
            addTaskDetailButton.IconUri = new Uri("/Assets/new.png", UriKind.Relative);
            addTaskDetailButton.Text = "Add New";
            addTaskDetailButton.Click += addTaskDetailButton_Click;
            ApplicationBar.Mode = ApplicationBarMode.Default;
            ApplicationBar.Buttons.Add(addTaskDetailButton);
            if (ApplicationData.IsRedirectedFromTimesheet)
            {
                SetHeaderDate(ApplicationData.CurrentDate);
            }

            ////Show Pending Toast from other pages
            object toastMessage;
            if (PhoneApplicationService.Current.State.TryGetValue("ToastNotification", out toastMessage))
            {
                string message = toastMessage.ToString();
                if (!string.IsNullOrEmpty(message))
                {
                    ShowToastNotification(message);
                    PhoneApplicationService.Current.State["ToastNotification"] = string.Empty;
                }
            }

            base.OnNavigatedTo(e);
        }
Exemplo n.º 51
0
        // コンストラクター
        public MainPage()
        {
            InitializeComponent();

            // ApplicationBarItemを追加
            this.fileChooseButton = new ApplicationBarIconButton
            {
                IconUri = new Uri("/icons/appbar.folder.rest.png", UriKind.Relative),
                Text = "読み込み"
            };
            this.fileSaveButton = new ApplicationBarIconButton
            {
                IconUri = new Uri("/icons/appbar.save.rest.png", UriKind.Relative),
                Text = "保存",
                IsEnabled = false
            };
            this.aboutItem = new ApplicationBarMenuItem
            {
                Text = "バージョン情報"
            };

            this.ApplicationBar.Buttons.Add(this.fileChooseButton);
            this.ApplicationBar.Buttons.Add(this.fileSaveButton);
            this.ApplicationBar.MenuItems.Add(this.aboutItem);

            this.fileChooseButton.Click += new EventHandler(fileChooseButton_Click);
            this.fileSaveButton.Click += new EventHandler(fileSaveButton_Click);
            this.aboutItem.Click += new EventHandler(aboutItem_Click);
        }
Exemplo n.º 52
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);
        }
Exemplo n.º 53
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/HFR7;component/AnswerTopic.xaml", System.UriKind.Relative));
     this.AnswerTopicPage      = ((Microsoft.Phone.Controls.PhoneApplicationPage)(this.FindName("AnswerTopicPage")));
     this.LayoutRoot           = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.backgroundImageBrush = ((System.Windows.Media.ImageBrush)(this.FindName("backgroundImageBrush")));
     this.progressBar          = ((Microsoft.Phone.Controls.PerformanceProgressBar)(this.FindName("progressBar")));
     this.globalTextblock      = ((System.Windows.Controls.TextBlock)(this.FindName("globalTextblock")));
     this.TitlePanel           = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.PageTitle            = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.ContentPanel         = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.answerScrollViewer   = ((System.Windows.Controls.ScrollViewer)(this.FindName("answerScrollViewer")));
     this.showQuoteButton      = ((System.Windows.Controls.Button)(this.FindName("showQuoteButton")));
     this.answerTextBox        = ((System.Windows.Controls.TextBox)(this.FindName("answerTextBox")));
     this.policeCanvas         = ((System.Windows.Controls.Canvas)(this.FindName("policeCanvas")));
     this.boldButton           = ((Jayway.Controls.RoundButton)(this.FindName("boldButton")));
     this.italicsButton        = ((Jayway.Controls.RoundButton)(this.FindName("italicsButton")));
     this.underlineButton      = ((Jayway.Controls.RoundButton)(this.FindName("underlineButton")));
     this.spoilerButton        = ((Jayway.Controls.RoundButton)(this.FindName("spoilerButton")));
     this.urlButton            = ((Jayway.Controls.RoundButton)(this.FindName("urlButton")));
     this.imgButton            = ((Jayway.Controls.RoundButton)(this.FindName("imgButton")));
     this.citButton            = ((Jayway.Controls.RoundButton)(this.FindName("citButton")));
     this.sendButton           = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("sendButton")));
     this.policeButton         = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("policeButton")));
     this.hfrrehostButton      = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("hfrrehostButton")));
     this.smileyButton         = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("smileyButton")));
 }
Exemplo n.º 54
0
        public Forum()
        {
            InitializeComponent();

            SystemTray.SetProgressIndicator(this, progress);
            m_button = ApplicationBar.Buttons[0] as ApplicationBarIconButton;
        }
Exemplo n.º 55
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";
        }
Exemplo n.º 56
0
        private void InitializeApplicationBar()
        {
            /***
             * Make sure these buttons are added in the same order as the button names in the
             * enumeration above. Otherwise we don't know which button is where - see GetQuakes().
             **/
            List<ApplicationBarIconButton> buttons = new List<ApplicationBarIconButton>();

            ApplicationBarIconButton zoomOutButton = new ApplicationBarIconButton();
            zoomOutButton.Text = AppResources.AppBarZoomOutButtonText;
            zoomOutButton.IconUri = new Uri("/Icons/appbar.minus.rest.png", UriKind.Relative);
            zoomOutButton.Click += ZoomOutButton_Click;

            ApplicationBarIconButton refreshButton = new ApplicationBarIconButton();
            refreshButton.Text = AppResources.AppBarRefreshButtonText;
            refreshButton.IconUri = new Uri("/Icons/appbar.refresh.rest.png", UriKind.Relative);
            refreshButton.Click += RefreshRecentButton_Click;

            //ApplicationBarIconButton listViewButton = new ApplicationBarIconButton();
            //listViewButton.Text = AppResources.AppBarListViewButtonText;
            //listViewButton.IconUri = new Uri("/Icons/appbar.list.png", UriKind.Relative);
            //listViewButton.Click += ListPageButton_Click;

            ApplicationBarIconButton zoomInButton = new ApplicationBarIconButton();
            zoomInButton.Text = AppResources.AppBarZoomInButtonText;
            zoomInButton.IconUri = new Uri("/Icons/appbar.add.rest.png", UriKind.Relative);
            zoomInButton.Click += ZoomInButton_Click;

            buttons.Add(zoomOutButton);
            buttons.Add(refreshButton);
            //buttons.Add(listViewButton);
            buttons.Add(zoomInButton);

            base.InitializeApplicationBar(buttons);
        }
Exemplo n.º 57
0
 public WebList()
 {
     InitializeComponent();
     
     _cmdRefresh = AppButton(0);
     _cmdRefresh.Text = Strings.Refresh;
 }
Exemplo n.º 58
0
        // Constructor
        public MainPage()
        {
            
            
            InitializeComponent();

            btnLogout = new ApplicationBarIconButton();

            System.Windows.Media.ImageBrush myBrush = new System.Windows.Media.ImageBrush();
            Image image = new Image();
            
            image.Source = new BitmapImage(new Uri("/Images/bg_hdpi.jpg", UriKind.Relative));
            myBrush.ImageSource = image.Source;
            LayoutRoot.Background = myBrush;

            

            loadSettings();

            SetHeight();
            SetWeight();
            SetAge();
            SetCollar();

            SetArmLength();
            SetBustSize();
            SetHipSize();
            SetWaistSize();
            SetCupSize();

           
        }
Exemplo n.º 59
0
        public WebDavDownload()
        {
            InitializeComponent();

            _cmdDownload = AppButton(0);
            _cmdDownload.Text = Strings.WebDavDownload_Open;
        }
Exemplo n.º 60
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Puzzle15;component/MainPage.xaml", System.UriKind.Relative));
     this.ShowDrag         = ((System.Windows.Media.Animation.Storyboard)(this.FindName("ShowDrag")));
     this.LayoutRoot       = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel       = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.ContentPanel     = ((System.Windows.Controls.Canvas)(this.FindName("ContentPanel")));
     this.textBlock1       = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock1")));
     this.txtMoves         = ((System.Windows.Controls.TextBlock)(this.FindName("txtMoves")));
     this.textBlock2       = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock2")));
     this.txtTime          = ((System.Windows.Controls.TextBlock)(this.FindName("txtTime")));
     this.WinGrid          = ((System.Windows.Controls.Grid)(this.FindName("WinGrid")));
     this.btnSubmitScore   = ((System.Windows.Controls.Image)(this.FindName("btnSubmitScore")));
     this.btnNoThanks      = ((System.Windows.Controls.Image)(this.FindName("btnNoThanks")));
     this.txtUserName      = ((System.Windows.Controls.TextBox)(this.FindName("txtUserName")));
     this.GridScoreBorder  = ((System.Windows.Controls.Border)(this.FindName("GridScoreBorder")));
     this.GridScore        = ((System.Windows.Controls.Grid)(this.FindName("GridScore")));
     this.cc               = ((System.Windows.Controls.TextBlock)(this.FindName("cc")));
     this.csssssc          = ((System.Windows.Controls.TextBlock)(this.FindName("csssssc")));
     this.GridScrambling   = ((System.Windows.Controls.Grid)(this.FindName("GridScrambling")));
     this.rectangle        = ((System.Windows.Shapes.Rectangle)(this.FindName("rectangle")));
     this.textBlock3       = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock3")));
     this.textBlock3_Copy  = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock3_Copy")));
     this.textBlock3_Copy1 = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock3_Copy1")));
     this.btnHelp          = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnHelp")));
     this.btnPlay          = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("btnPlay")));
     this.btnAbout         = ((Microsoft.Phone.Shell.ApplicationBarMenuItem)(this.FindName("btnAbout")));
 }