private void SizeForNormalMode(bool animate)
        {
            ContentControl container = (ContentControl)ItemContainerGenerator.ContainerFromItem(SelectedItem);

            if (null != container)
            {
                // Set height/translation to show just the selected item
                if (0 < container.ActualHeight)
                {
                    SetContentHeight(container.ActualHeight + container.Margin.Top + container.Margin.Bottom);
                }
                if (null != _itemsPresenterTranslateTransformPart)
                {
                    if (!animate)
                    {
                        _itemsPresenterTranslateTransformPart.Y = 0;
                    }
                    _translateAnimation.To   = container.Margin.Top - LayoutInformation.GetLayoutSlot(container).Top;
                    _translateAnimation.From = animate ? null : _translateAnimation.To;
                }
            }
            else
            {
                // Resize to minimum height
                SetContentHeight(0);
            }

            // Clear highlight of previously selected container
            ListPickerItem oldContainer = (ListPickerItem)ItemContainerGenerator.ContainerFromIndex(SelectedIndex);

            if (null != oldContainer)
            {
                oldContainer.IsSelected = false;
            }
        }
Beispiel #2
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/wallhaven;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot         = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.MainPivot          = ((Microsoft.Phone.Controls.Pivot)(this.FindName("MainPivot")));
     this.LatestImagesPivot  = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("LatestImagesPivot")));
     this.LatestWallpapers   = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("LatestWallpapers")));
     this.RandomImagesPivot  = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("RandomImagesPivot")));
     this.RandomWallpapers   = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("RandomWallpapers")));
     this.SearchPivot        = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("SearchPivot")));
     this.SearchResults      = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("SearchResults")));
     this.SearchTextBox      = ((System.Windows.Controls.TextBox)(this.FindName("SearchTextBox")));
     this.SettingsPivot      = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("SettingsPivot")));
     this.MainStackPanel     = ((System.Windows.Controls.StackPanel)(this.FindName("MainStackPanel")));
     this.CategoryFilterGrid = ((System.Windows.Controls.Grid)(this.FindName("CategoryFilterGrid")));
     this.GeneralFilter      = ((System.Windows.Controls.Primitives.ToggleButton)(this.FindName("GeneralFilter")));
     this.AnimeFilter        = ((System.Windows.Controls.Primitives.ToggleButton)(this.FindName("AnimeFilter")));
     this.PeopleFilter       = ((System.Windows.Controls.Primitives.ToggleButton)(this.FindName("PeopleFilter")));
     this.SFWFilter          = ((System.Windows.Controls.Primitives.ToggleButton)(this.FindName("SFWFilter")));
     this.SketchyFilter      = ((System.Windows.Controls.Primitives.ToggleButton)(this.FindName("SketchyFilter")));
     this.NSFWFilter         = ((System.Windows.Controls.Primitives.ToggleButton)(this.FindName("NSFWFilter")));
     this.SortBy             = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("SortBy")));
     this.Relevance          = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("Relevance")));
     this.DateAdded          = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("DateAdded")));
     this.Views      = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("Views")));
     this.Favorites  = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("Favorites")));
     this.OrderBy    = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("OrderBy")));
     this.Ascending  = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("Ascending")));
     this.Descending = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("Descending")));
 }
Beispiel #3
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/MultiWallet;component/MainPage.xaml", System.UriKind.Relative));
     this.RootLayout         = ((System.Windows.Controls.Grid)(this.FindName("RootLayout")));
     this.loadingPage        = ((System.Windows.Controls.Grid)(this.FindName("loadingPage")));
     this.LoadingBar         = ((System.Windows.Controls.ProgressBar)(this.FindName("LoadingBar")));
     this.HomeLoaded         = ((System.Windows.Controls.Grid)(this.FindName("HomeLoaded")));
     this.LoadedContentPanel = ((System.Windows.Controls.Grid)(this.FindName("LoadedContentPanel")));
     this.CurrencyPickerHome = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("CurrencyPickerHome")));
     this.one                  = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("one")));
     this.two                  = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("two")));
     this.three                = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("three")));
     this.BalanceBlock         = ((System.Windows.Controls.TextBlock)(this.FindName("BalanceBlock")));
     this.QRImage              = ((System.Windows.Controls.Image)(this.FindName("QRImage")));
     this.TransactionBlock     = ((System.Windows.Controls.TextBlock)(this.FindName("TransactionBlock")));
     this.HomeLoadingBar       = ((System.Windows.Controls.ProgressBar)(this.FindName("HomeLoadingBar")));
     this.SettingsLoaded       = ((System.Windows.Controls.Grid)(this.FindName("SettingsLoaded")));
     this.SettingsContentPanel = ((System.Windows.Controls.Grid)(this.FindName("SettingsContentPanel")));
     this.BitcoinAPIBox        = ((System.Windows.Controls.TextBox)(this.FindName("BitcoinAPIBox")));
     this.LitecoinAPIBox       = ((System.Windows.Controls.TextBox)(this.FindName("LitecoinAPIBox")));
     this.DogecoinAPIBox       = ((System.Windows.Controls.TextBox)(this.FindName("DogecoinAPIBox")));
     this.SettingsListPicker   = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("SettingsListPicker")));
     this.Doge                 = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("Doge")));
     this.Bit                  = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("Bit")));
     this.Lite                 = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("Lite")));
     this.SaveButton           = ((System.Windows.Controls.Button)(this.FindName("SaveButton")));
 }
        private void OnSelectedIndexChanged(int oldValue, int newValue)
        {
            // Validate new value
            if ((Items.Count <= newValue) ||
                ((0 < Items.Count) && (newValue < 0)) ||
                ((0 == Items.Count) && (newValue != -1)))
            {
                if ((null == Template) && (0 <= newValue))
                {
                    // Can't set the value now; remember it for later
                    _deferredSelectedIndex = newValue;
                    return;
                }
                throw new InvalidOperationException(Properties.Resources.InvalidSelectedIndex);
            }

            // Synchronize SelectedItem property
            if (!_updatingSelection)
            {
                _updatingSelection = true;
                SelectedItem       = (-1 != newValue) ? Items[newValue] : null;
                _updatingSelection = false;
            }

            if (-1 != oldValue)
            {
                // Toggle container selection
                ListPickerItem oldContainer = (ListPickerItem)ItemContainerGenerator.ContainerFromIndex(oldValue);
                if (null != oldContainer)
                {
                    oldContainer.IsSelected = false;
                }
            }
        }
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/MultiTenant;component/Pages/AddProperty.xaml", System.UriKind.Relative));
     this.LayoutRoot     = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel   = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.propertyImage  = ((System.Windows.Controls.Image)(this.FindName("propertyImage")));
     this.takePhotoBtn   = ((System.Windows.Controls.Button)(this.FindName("takePhotoBtn")));
     this.choosePhotoBtn = ((System.Windows.Controls.Button)(this.FindName("choosePhotoBtn")));
     this.streetTxtBox   = ((Microsoft.Phone.Controls.PhoneTextBox)(this.FindName("streetTxtBox")));
     this.cityTxtBox     = ((Microsoft.Phone.Controls.PhoneTextBox)(this.FindName("cityTxtBox")));
     this.postcodeTxtBox = ((Microsoft.Phone.Controls.PhoneTextBox)(this.FindName("postcodeTxtBox")));
     this.TypeList       = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("TypeList")));
     this.houseOption    = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("houseOption")));
     this.BungelowOption = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("BungelowOption")));
     this.FlatOption     = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("FlatOption")));
     this.BedroomList    = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("BedroomList")));
     this.one            = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("one")));
     this.two            = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("two")));
     this.three          = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("three")));
     this.Parking1       = ((System.Windows.Controls.RadioButton)(this.FindName("Parking1")));
     this.Parking2       = ((System.Windows.Controls.RadioButton)(this.FindName("Parking2")));
     this.Pets1          = ((System.Windows.Controls.RadioButton)(this.FindName("Pets1")));
     this.Pets2          = ((System.Windows.Controls.RadioButton)(this.FindName("Pets2")));
     this.test1          = ((System.Windows.Controls.TextBlock)(this.FindName("test1")));
     this.test2          = ((System.Windows.Controls.TextBlock)(this.FindName("test2")));
     this.test3          = ((System.Windows.Controls.TextBlock)(this.FindName("test3")));
     this.test4          = ((System.Windows.Controls.TextBlock)(this.FindName("test4")));
 }
Beispiel #6
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/batteryBetter;component/MainPage.xaml", System.UriKind.Relative));
     this.showDetailed             = ((System.Windows.Media.Animation.Storyboard)(this.FindName("showDetailed")));
     this.hideDetailed             = ((System.Windows.Media.Animation.Storyboard)(this.FindName("hideDetailed")));
     this.LayoutRoot               = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel               = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.PowerOffTitle            = ((System.Windows.Controls.TextBlock)(this.FindName("PowerOffTitle")));
     this.DischarginRateTitle      = ((System.Windows.Controls.TextBlock)(this.FindName("DischarginRateTitle")));
     this.PowerOffAtTitle          = ((System.Windows.Controls.TextBlock)(this.FindName("PowerOffAtTitle")));
     this.DischargeRateInput       = ((System.Windows.Controls.TextBlock)(this.FindName("DischargeRateInput")));
     this.powerOffInInput          = ((System.Windows.Controls.TextBlock)(this.FindName("powerOffInInput")));
     this.powerOffAtInput          = ((System.Windows.Controls.TextBlock)(this.FindName("powerOffAtInput")));
     this.LastChargeTitle          = ((System.Windows.Controls.TextBlock)(this.FindName("LastChargeTitle")));
     this.timeSinceLastChargeInput = ((System.Windows.Controls.TextBlock)(this.FindName("timeSinceLastChargeInput")));
     this.detailedList             = ((System.Windows.Controls.ListBox)(this.FindName("detailedList")));
     this.DetailedSort             = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("DetailedSort")));
     this.detailedMinutely         = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("detailedMinutely")));
     this.detailedHourly           = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("detailedHourly")));
     this.areachart         = ((batteryBetter.BatteryChart)(this.FindName("areachart")));
     this.GraphSort         = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("GraphSort")));
     this.graphHourly       = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("graphHourly")));
     this.graphdaily        = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("graphdaily")));
     this.graphweekly       = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("graphweekly")));
     this.graphlastcharge   = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("graphlastcharge")));
     this.graphalltime      = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("graphalltime")));
     this.sortText          = ((System.Windows.Controls.TextBlock)(this.FindName("sortText")));
     this.usageList         = ((System.Windows.Controls.ListBox)(this.FindName("usageList")));
     this.UsageSort         = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("UsageSort")));
     this.usageCharge       = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("usageCharge")));
     this.usageHundred      = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("usageHundred")));
     this.usageAlltime      = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("usageAlltime")));
     this.ContentGrid       = ((System.Windows.Controls.ScrollViewer)(this.FindName("ContentGrid")));
     this.rateMe            = ((System.Windows.Controls.TextBlock)(this.FindName("rateMe")));
     this.goProButton       = ((System.Windows.Controls.TextBlock)(this.FindName("goProButton")));
     this.notifSetting      = ((System.Windows.Controls.TextBlock)(this.FindName("notifSetting")));
     this.liveTileSetting   = ((System.Windows.Controls.TextBlock)(this.FindName("liveTileSetting")));
     this.enablelockScreen  = ((System.Windows.Controls.TextBlock)(this.FindName("enablelockScreen")));
     this.resetData         = ((System.Windows.Controls.TextBlock)(this.FindName("resetData")));
     this.notUpdating       = ((System.Windows.Controls.TextBlock)(this.FindName("notUpdating")));
     this.grid              = ((System.Windows.Controls.Grid)(this.FindName("grid")));
     this.detailedTime      = ((System.Windows.Controls.TextBlock)(this.FindName("detailedTime")));
     this.detailedbattery   = ((System.Windows.Controls.TextBlock)(this.FindName("detailedbattery")));
     this.detailedChange    = ((System.Windows.Controls.TextBlock)(this.FindName("detailedChange")));
     this.onBattery         = ((System.Windows.Controls.StackPanel)(this.FindName("onBattery")));
     this.onPluggedIn       = ((System.Windows.Controls.StackPanel)(this.FindName("onPluggedIn")));
     this.onWifiOn          = ((System.Windows.Controls.StackPanel)(this.FindName("onWifiOn")));
     this.onOffline         = ((System.Windows.Controls.StackPanel)(this.FindName("onOffline")));
     this.onDataLimit       = ((System.Windows.Controls.StackPanel)(this.FindName("onDataLimit")));
     this.onInternet        = ((System.Windows.Controls.StackPanel)(this.FindName("onInternet")));
     this.ChargingStatusBar = ((System.Windows.Controls.ProgressBar)(this.FindName("ChargingStatusBar")));
     this.ChargeStatus      = ((System.Windows.Controls.TextBlock)(this.FindName("ChargeStatus")));
 }
 private void PopulatePrivacy()
 {
     PrivacyPicker.Items.Clear();
     Enum.GetValues(typeof(Settings.ePrivacy)).Cast<Settings.ePrivacy>().ToList().ForEach(v =>
     {
         ListPickerItem lpi = new ListPickerItem();
         lpi.Content = v.ToString().Replace("FriendsFamily", "Friends & Family");
         PrivacyPicker.Items.Add(lpi);
     });
     PrivacyPicker.SelectedIndex = (int)Settings.Privacy;
     PrivacyPicker.SelectionChanged += PrivacyPicker_SelectionChanged;
 }
Beispiel #8
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Attendance;component/stats.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.id = ((System.Windows.Controls.TextBlock)(this.FindName("id")));
     this.name = ((System.Windows.Controls.TextBlock)(this.FindName("name")));
     this.num = ((System.Windows.Controls.TextBlock)(this.FindName("num")));
     this.val = ((System.Windows.Controls.TextBox)(this.FindName("val")));
     this.def_disp = ((System.Windows.Controls.TextBlock)(this.FindName("def_disp")));
     this.list = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("list")));
     this.less = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("less")));
     this.more = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("more")));
     this.equal = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("equal")));
 }
Beispiel #9
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/WPNotes;component/NewNote.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.header = ((System.Windows.Controls.TextBlock)(this.FindName("header")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.title = ((System.Windows.Controls.TextBox)(this.FindName("title")));
     this.body = ((System.Windows.Controls.TextBox)(this.FindName("body")));
     this.featured = ((System.Windows.Controls.CheckBox)(this.FindName("featured")));
     this.savebutton = ((System.Windows.Controls.Button)(this.FindName("savebutton")));
     this.deleteButton = ((System.Windows.Controls.Button)(this.FindName("deleteButton")));
     this.shareButton = ((System.Windows.Controls.Button)(this.FindName("shareButton")));
     this.category = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("category")));
     this.personal = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("personal")));
     this.work = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("work")));
 }
Beispiel #10
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/NihongoSenpai;component/Pages/EditLessonPage.xaml", System.UriKind.Relative));
     this.LayoutRoot          = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.editOperationPicker = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("editOperationPicker")));
     this.Item1            = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("Item1")));
     this.Item2            = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("Item2")));
     this.Item3            = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("Item3")));
     this.itemsListbox     = ((System.Windows.Controls.ListBox)(this.FindName("itemsListbox")));
     this.showTypeControl  = ((NihongoSenpai.Controls.SelectTypeControl)(this.FindName("showTypeControl")));
     this.showDescControl  = ((NihongoSenpai.Controls.SelectShowDescriptionControl)(this.FindName("showDescControl")));
     this.showWordsControl = ((NihongoSenpai.Controls.SelectShowWordControl)(this.FindName("showWordsControl")));
     this.executeButton    = ((System.Windows.Controls.Button)(this.FindName("executeButton")));
 }
        private void SizeForExpandedMode()
        {
            // Set height and align first element at top
            if (null != _itemsPresenterPart)
            {
                SetContentHeight(_itemsPresenterPart.ActualHeight);
            }
            if (null != _itemsPresenterTranslateTransformPart)
            {
                _translateAnimation.To = 0;
            }

            // Highlight selected container
            ListPickerItem container = (ListPickerItem)ItemContainerGenerator.ContainerFromIndex(SelectedIndex);

            if (null != container)
            {
                container.IsSelected = true;
            }
        }
Beispiel #12
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Collabrify-wp8;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.TextBlock1 = ((System.Windows.Controls.TextBlock)(this.FindName("TextBlock1")));
     this.ResponseTite = ((System.Windows.Controls.TextBlock)(this.FindName("ResponseTite")));
     this.textfield = ((System.Windows.Controls.TextBox)(this.FindName("textfield")));
     this.OptionSelection = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("OptionSelection")));
     this.CreateSession = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("CreateSession")));
     this.JoinSession = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("JoinSession")));
     this.LeaveSession = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("LeaveSession")));
     this.ListSessions = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("ListSessions")));
     this.Broadcast = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("Broadcast")));
     this.Button1 = ((System.Windows.Controls.Button)(this.FindName("Button1")));
 }
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Collabrify-wp8;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.TextBlock1      = ((System.Windows.Controls.TextBlock)(this.FindName("TextBlock1")));
     this.ResponseTite    = ((System.Windows.Controls.TextBlock)(this.FindName("ResponseTite")));
     this.textfield       = ((System.Windows.Controls.TextBox)(this.FindName("textfield")));
     this.OptionSelection = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("OptionSelection")));
     this.CreateSession   = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("CreateSession")));
     this.JoinSession     = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("JoinSession")));
     this.LeaveSession    = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("LeaveSession")));
     this.ListSessions    = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("ListSessions")));
     this.Broadcast       = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("Broadcast")));
     this.Button1         = ((System.Windows.Controls.Button)(this.FindName("Button1")));
 }
Beispiel #14
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/NihongoSenpai;component/Controls/EditWordControl.xaml", System.UriKind.Relative));
     this.editGrid            = ((System.Windows.Controls.Grid)(this.FindName("editGrid")));
     this.kanaTextbox         = ((System.Windows.Controls.TextBox)(this.FindName("kanaTextbox")));
     this.kanjiTextbox        = ((System.Windows.Controls.TextBox)(this.FindName("kanjiTextbox")));
     this.translationTextbox  = ((System.Windows.Controls.TextBox)(this.FindName("translationTextbox")));
     this.descriptionTextbox  = ((System.Windows.Controls.TextBox)(this.FindName("descriptionTextbox")));
     this.editOperationPicker = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("editOperationPicker")));
     this.Item1               = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("Item1")));
     this.Item2               = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("Item2")));
     this.Item3               = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("Item3")));
     this.typeListbox         = ((System.Windows.Controls.ListBox)(this.FindName("typeListbox")));
     this.showDescFlagListbox = ((System.Windows.Controls.ListBox)(this.FindName("showDescFlagListbox")));
     this.showWordFlagListbox = ((System.Windows.Controls.ListBox)(this.FindName("showWordFlagListbox")));
     this.editButton          = ((System.Windows.Controls.Button)(this.FindName("editButton")));
     this.cancelButton        = ((System.Windows.Controls.Button)(this.FindName("cancelButton")));
 }
Beispiel #15
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/HexDecBinConverter;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.ResultTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ResultTitle")));
     this.ResultContent = ((System.Windows.Controls.TextBlock)(this.FindName("ResultContent")));
     this.boxOne = ((System.Windows.Controls.TextBox)(this.FindName("boxOne")));
     this.ClearButton = ((System.Windows.Controls.Button)(this.FindName("ClearButton")));
     this.SwapButton = ((System.Windows.Controls.Button)(this.FindName("SwapButton")));
     this.ConvertButton = ((System.Windows.Controls.Button)(this.FindName("ConvertButton")));
     this.menuOne = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("menuOne")));
     this.HexOne = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("HexOne")));
     this.DecOne = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("DecOne")));
     this.BinOne = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("BinOne")));
     this.menuTwo = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("menuTwo")));
     this.HexTwo = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("HexTwo")));
     this.DecTwo = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("DecTwo")));
     this.BinTwo = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("BinTwo")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SportTracker;component/NewActivityPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.header = ((System.Windows.Controls.TextBlock)(this.FindName("header")));
     this.ContentPanel1 = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel1")));
     this.ActivitySelection = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("ActivitySelection")));
     this.Activity1 = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("Activity1")));
     this.Activity2 = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("Activity2")));
     this.Activity3 = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("Activity3")));
     this.Activity4 = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("Activity4")));
     this.Activity5 = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("Activity5")));
     this.ContentPanel2 = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel2")));
     this.dateBlock = ((System.Windows.Controls.TextBlock)(this.FindName("dateBlock")));
     this.map = ((Microsoft.Phone.Maps.Controls.Map)(this.FindName("map")));
     this.timeBlock = ((System.Windows.Controls.TextBlock)(this.FindName("timeBlock")));
     this.distanceBlock = ((System.Windows.Controls.TextBlock)(this.FindName("distanceBlock")));
     this.speedBlock = ((System.Windows.Controls.TextBlock)(this.FindName("speedBlock")));
     this.firstButton = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("firstButton")));
     this.secondButton = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("secondButton")));
     this.thirdButton = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("thirdButton")));
 }
Beispiel #17
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/mockup;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.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.Username = ((System.Windows.Controls.TextBlock)(this.FindName("Username")));
     this.UsernameInput = ((System.Windows.Controls.TextBox)(this.FindName("UsernameInput")));
     this.Password = ((System.Windows.Controls.TextBlock)(this.FindName("Password")));
     this.PasswordInput = ((System.Windows.Controls.PasswordBox)(this.FindName("PasswordInput")));
     this.Domain = ((System.Windows.Controls.TextBlock)(this.FindName("Domain")));
     this.DomainInput = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("DomainInput")));
     this.NUSSTU = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("NUSSTU")));
     this.NUSSTF = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("NUSSTF")));
     this.NUSEXT = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("NUSEXT")));
     this.GUEST = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("GUEST")));
     this.offline = ((System.Windows.Controls.Button)(this.FindName("offline")));
     this.login = ((System.Windows.Controls.Button)(this.FindName("login")));
     this.loginProgressBar = ((Microsoft.Phone.Controls.PerformanceProgressBar)(this.FindName("loginProgressBar")));
 }
 private void OptionSelection_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     ListPickerItem lpi = (sender as ListPicker).SelectedItem as ListPickerItem;
     RequestType = lpi;
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Class-i-er;component/TimeSelection.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.startTime = ((Microsoft.Phone.Controls.TimePicker)(this.FindName("startTime")));
     this.semester = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("semester")));
     this.year = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("year")));
     this._2011 = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("_2011")));
     this._2012 = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("_2012")));
     this._2013 = ((Microsoft.Phone.Controls.ListPickerItem)(this.FindName("_2013")));
     this.sun = ((System.Windows.Controls.Button)(this.FindName("sun")));
     this.mon = ((System.Windows.Controls.Button)(this.FindName("mon")));
     this.tue = ((System.Windows.Controls.Button)(this.FindName("tue")));
     this.wed = ((System.Windows.Controls.Button)(this.FindName("wed")));
     this.thu = ((System.Windows.Controls.Button)(this.FindName("thu")));
     this.fri = ((System.Windows.Controls.Button)(this.FindName("fri")));
     this.sat = ((System.Windows.Controls.Button)(this.FindName("sat")));
     this.endTime = ((Microsoft.Phone.Controls.TimePicker)(this.FindName("endTime")));
 }