Пример #1
0
 private void textColorSelectedIndexChanged(object sender, PickerChangedEventArgs e)
 {
     this.selectedType = e.SelectedValue;
     textColorButton.SetTitle(selectedType, UIControlState.Normal);
     if (selectedType == "Black")
     {
         sizeComboBox.TextColor        = UIColor.Black;
         resolutionComboBox.TextColor  = UIColor.Black;
         orientationComboBox.TextColor = UIColor.Black;
     }
     else if (selectedType == "Blue")
     {
         sizeComboBox.TextColor        = UIColor.Blue;
         resolutionComboBox.TextColor  = UIColor.Blue;
         orientationComboBox.TextColor = UIColor.Blue;
     }
     else if (selectedType == "Red")
     {
         sizeComboBox.TextColor        = UIColor.Red;
         resolutionComboBox.TextColor  = UIColor.Red;
         orientationComboBox.TextColor = UIColor.Red;
     }
     else if (selectedType == "Yellow")
     {
         sizeComboBox.TextColor        = UIColor.Yellow;
         resolutionComboBox.TextColor  = UIColor.Yellow;
         orientationComboBox.TextColor = UIColor.Yellow;
     }
 }
Пример #2
0
 private void SelectedIndexChanged(object sender, PickerChangedEventArgs e)
 {
     this.selectedType = e.SelectedValue;
     positionbutton.SetTitle(selectedType, UIControlState.Normal);
     if (selectedType == "TopLeft")
     {
         rangeSlider1.TickPlacement = SFTickPlacement.SFTickPlacementTopLeft;
         rangeSlider2.TickPlacement = SFTickPlacement.SFTickPlacementTopLeft;
     }
     else if (selectedType == "BottomRight")
     {
         rangeSlider1.TickPlacement = SFTickPlacement.SFTickPlacementBottomRight;
         rangeSlider2.TickPlacement = SFTickPlacement.SFTickPlacementBottomRight;
     }
     else if (selectedType == "Inline")
     {
         rangeSlider1.TickPlacement = SFTickPlacement.SFTickPlacementInline;
         rangeSlider2.TickPlacement = SFTickPlacement.SFTickPlacementInline;
     }
     else if (selectedType == "Outside")
     {
         rangeSlider1.TickPlacement = SFTickPlacement.SFTickPlacementOutSide;
         rangeSlider2.TickPlacement = SFTickPlacement.SFTickPlacementOutSide;
     }
     else if (selectedType == "None")
     {
         rangeSlider1.TickPlacement = SFTickPlacement.SFTickPlacementNone;
         rangeSlider2.TickPlacement = SFTickPlacement.SFTickPlacementNone;
     }
 }
Пример #3
0
 private void sizeSelectedIndexChanged(object sender, PickerChangedEventArgs e)
 {
     this.selectedType = e.SelectedValue;
     sizeButton.SetTitle(selectedType, UIControlState.Normal);
     if (selectedType == "Small")
     {
         sizeComboBox.TextSize        = 13;
         resolutionComboBox.TextSize  = 13;
         orientationComboBox.TextSize = 13;
         comboBoxHeaderLabel.Font     = UIFont.SystemFontOfSize(13f);
         sizetextLabel.Font           = UIFont.SystemFontOfSize(13f);
         resolutionLabel.Font         = UIFont.SystemFontOfSize(13f);
         orientationLabel.Font        = UIFont.SystemFontOfSize(13f);
     }
     else if (selectedType == "Medium")
     {
         sizeComboBox.TextSize        = 15;
         resolutionComboBox.TextSize  = 15;
         orientationComboBox.TextSize = 15;
         comboBoxHeaderLabel.Font     = UIFont.SystemFontOfSize(15f);
         sizetextLabel.Font           = UIFont.SystemFontOfSize(15f);
         resolutionLabel.Font         = UIFont.SystemFontOfSize(15f);
         orientationLabel.Font        = UIFont.SystemFontOfSize(15f);
     }
     else if (selectedType == "Large")
     {
         sizeComboBox.TextSize        = 17;
         resolutionComboBox.TextSize  = 17;
         orientationComboBox.TextSize = 17;
         comboBoxHeaderLabel.Font     = UIFont.SystemFontOfSize(17f);
         sizetextLabel.Font           = UIFont.SystemFontOfSize(17f);
         resolutionLabel.Font         = UIFont.SystemFontOfSize(17f);
         orientationLabel.Font        = UIFont.SystemFontOfSize(17f);
     }
 }
Пример #4
0
 private void backColorSelectedIndexChanged(object sender, PickerChangedEventArgs e)
 {
     this.selectedType = e.SelectedValue;
     backColorButton.SetTitle(selectedType, UIControlState.Normal);
     if (selectedType == "Transparent")
     {
         sizeComboBox.BackgroundColor        = UIColor.Clear;
         resolutionComboBox.BackgroundColor  = UIColor.Clear;
         orientationComboBox.BackgroundColor = UIColor.Clear;
     }
     else if (selectedType == "Blue")
     {
         sizeComboBox.BackgroundColor        = UIColor.Blue;
         resolutionComboBox.BackgroundColor  = UIColor.Blue;
         orientationComboBox.BackgroundColor = UIColor.Blue;
     }
     else if (selectedType == "Red")
     {
         sizeComboBox.BackgroundColor        = UIColor.Red;
         resolutionComboBox.BackgroundColor  = UIColor.Red;
         orientationComboBox.BackgroundColor = UIColor.Red;
     }
     else if (selectedType == "Yellow")
     {
         sizeComboBox.BackgroundColor        = UIColor.Yellow;
         resolutionComboBox.BackgroundColor  = UIColor.Yellow;
         orientationComboBox.BackgroundColor = UIColor.Yellow;
     }
 }
Пример #5
0
 private void SelectedIndexChanged(object sender, PickerChangedEventArgs e)
 {
     //this.selectedType = selectedorientation + e.SelectedValue;
     if (e.SelectedValue == "Default")
     {
         for (int i = 0; i < diagram.Connectors.Count; i++)
         {
             diagram.Connectors[i].Style.StrokeStyle = StrokeStyle.Default;
         }
     }
     else if (e.SelectedValue == "Dashed")
     {
         for (int i = 0; i < diagram.Connectors.Count; i++)
         {
             diagram.Connectors[i].Style.StrokeStyle = StrokeStyle.Dashed;
         }
     }
     else if (e.SelectedValue == "Dotted")
     {
         for (int i = 0; i < diagram.Connectors.Count; i++)
         {
             diagram.Connectors[i].Style.StrokeStyle = StrokeStyle.Dotted;
         }
     }
 }
        private void SelectedIndexChanged(object sender, PickerChangedEventArgs e)
        {
            this.selectedType = e.SelectedValue;
            positionbutton.SetTitle(selectedType, UIControlState.Normal);
            if (selectedType == "Left")
            {
                sideMenuController.Position     = SFNavigationDrawerPosition.SFNavigationDrawerPositionLeft;
                sideMenuController.DrawerHeight = this.Frame.Height;
                if ((UIDevice.CurrentDevice).UserInterfaceIdiom == UIUserInterfaceIdiom.Pad)
                {
                    sideMenuController.DrawerWidth = (this.Bounds.Width * 40) / 100;
                }
                else
                {
                    sideMenuController.DrawerWidth = (this.Bounds.Width * 60) / 100;
                }

                table.Frame         = new CGRect(0, 0, sideMenuController.DrawerWidth, this.Frame.Height);
                usernameLabel.Frame = new CGRect(0, 70, sideMenuController.DrawerWidth, 30);
                userImg.Frame       = new CGRect((sideMenuController.DrawerWidth / 2) - 25, 15, 50, 50);
            }
            else if (selectedType == "Top")
            {
                sideMenuController.Position     = SFNavigationDrawerPosition.SFNavigationDrawerPositionTop;
                sideMenuController.DrawerHeight = 200;
                sideMenuController.DrawerWidth  = this.Frame.Width;
                table.Frame         = new CGRect(0, 0, this.Frame.Width, 100);
                usernameLabel.Frame = new CGRect(0, 70, this.Frame.Width, 30);
                userImg.Frame       = new CGRect((this.Frame.Width / 2) - 25, 15, 50, 50);
            }
            else if (selectedType == "Bottom")
            {
                sideMenuController.Position     = SFNavigationDrawerPosition.SFNavigationDrawerPositionBottom;
                sideMenuController.DrawerHeight = 300;
                sideMenuController.DrawerWidth  = this.Frame.Width;
                table.Frame         = new CGRect(0, 0, this.Frame.Width, 100);
                usernameLabel.Frame = new CGRect(0, 70, this.Frame.Width, 30);
                userImg.Frame       = new CGRect((this.Frame.Width / 2) - 25, 15, 50, 50);
            }
            else
            {
                sideMenuController.Position     = SFNavigationDrawerPosition.SFNavigationDrawerPositionRight;
                sideMenuController.DrawerHeight = this.Frame.Height;
                if ((UIDevice.CurrentDevice).UserInterfaceIdiom == UIUserInterfaceIdiom.Pad)
                {
                    sideMenuController.DrawerWidth = (this.Bounds.Width * 40) / 100;
                }
                else
                {
                    sideMenuController.DrawerWidth = (this.Bounds.Width * 60) / 100;
                }

                table.Frame         = new CGRect(0, 0, sideMenuController.DrawerWidth, this.Frame.Height);
                usernameLabel.Frame = new CGRect(0, 70, sideMenuController.DrawerWidth, 30);
                userImg.Frame       = new CGRect((sideMenuController.DrawerWidth / 2) - 25, 15, 50, 50);
            }
        }
Пример #7
0
 private void viewSelectedIndexChanged(object sender, PickerChangedEventArgs e)
 {
     this.selectedType = e.SelectedValue;
     viewButton.SetTitle(selectedType, UIControlState.Normal);
     if (selectedType == "Default")
     {
         carousel.ViewMode = SFCarouselViewMode.SFCarouselViewModeDefault;
     }
     else
     {
         carousel.ViewMode = SFCarouselViewMode.SFCarouselViewModeLinear;
     }
 }
Пример #8
0
 private void navigationModeSelectedIndexChanged(object sender, PickerChangedEventArgs e)
 {
     this.selectedType = e.SelectedValue;
     navigationModeButton.SetTitle(selectedType, UIControlState.Normal);
     if (selectedType == "Dots")
     {
         rotator.NavigationStripMode = SFRotatorNavigationStripMode.Dots;
     }
     else
     {
         rotator.NavigationStripMode = SFRotatorNavigationStripMode.Thumbnail;
     }
 }
Пример #9
0
 private void navigationDirectionSelectedIndexChanged(object sender, PickerChangedEventArgs e)
 {
     this.selectedType = e.SelectedValue;
     navigationDirectionButton.SetTitle(selectedType, UIControlState.Normal);
     if (selectedType == "Horizontal")
     {
         rotator.NavigationDirection = SFRotatorNavigationDirection.Horizontal;
     }
     else
     {
         rotator.NavigationDirection = SFRotatorNavigationDirection.Vertical;
     }
 }
Пример #10
0
        private void SelectedIndexChanged1(object sender, PickerChangedEventArgs e)
        {
            this.selectedType = e.SelectedValue;
            if (selectedType == "Month View")
            {
                calendar.ViewMode = SFCalendarViewMode.SFCalendarViewModeMonth;
            }
            else if (selectedType == "Year View")
            {
                calendar.ViewMode = SFCalendarViewMode.SFCalendarViewModeYear;
            }

            button_calendarView.SetTitle(selectedType.ToString(), UIControlState.Normal);
        }
Пример #11
0
 private void SelectedIndexChanged1(object sender, PickerChangedEventArgs e)
 {
     this.selectedType = e.SelectedValue;
     positionbutton1.SetTitle(selectedType, UIControlState.Normal);
     if (selectedType == "TopLeft")
     {
         rangeSlider1.ValuePlacement = SFValuePlacement.SFValuePlacementTopLeft;
         rangeSlider2.ValuePlacement = SFValuePlacement.SFValuePlacementTopLeft;
     }
     else if (selectedType == "BottomRight")
     {
         rangeSlider1.ValuePlacement = SFValuePlacement.SFValuePlacementBottomRight;
         rangeSlider2.ValuePlacement = SFValuePlacement.SFValuePlacementBottomRight;
     }
 }
 private void SelectedIndexChanged1(object sender, PickerChangedEventArgs e)
 {
     this.selectedType = e.SelectedValue;
     transitionbutton.SetTitle(selectedType, UIControlState.Normal);
     if (selectedType == "SlideOnTop")
     {
         sideMenuController.Transition = SFNavigationDrawerTransition.SFNavigationDrawerTransitionSlideOnTop;
     }
     else if (selectedType == "Reveal")
     {
         sideMenuController.Transition = SFNavigationDrawerTransition.SFNavigationDrawerTransitionReveal;
     }
     else
     {
         sideMenuController.Transition = SFNavigationDrawerTransition.SFNavigationDrawerTransitionPush;
     }
 }
Пример #13
0
 private void SelectedIndexChanged(object sender, PickerChangedEventArgs e)
 {
     this.selectedType = e.SelectedValue;
     precisionButton.SetTitle(selectedType, UIControlState.Normal);
     if (selectedType == "Standard")
     {
         rating1.Precision = SFRatingPrecision.Standard;
     }
     else if (selectedType == "Half")
     {
         rating1.Precision = SFRatingPrecision.Half;
     }
     else if (selectedType == "Exact")
     {
         rating1.Precision = SFRatingPrecision.Exact;
     }
 }
Пример #14
0
 private void SelectedIndexChanged1(object sender, PickerChangedEventArgs e)
 {
     this.selectedType = e.SelectedValue;
     toolTipButton.SetTitle(selectedType, UIControlState.Normal);
     if (selectedType == "TopLeft")
     {
         rating1.TooltipPlacement = SFRatingTooltipPlacement.TopLeft;
     }
     else if (selectedType == "BottomRight")
     {
         rating1.TooltipPlacement = SFRatingTooltipPlacement.BottomRight;
     }
     else if (selectedType == "None")
     {
         rating1.TooltipPlacement = SFRatingTooltipPlacement.None;
     }
 }
Пример #15
0
 private void suggestionSelectedIndexChanged(object sender, PickerChangedEventArgs e)
 {
     this.selectedType = e.SelectedValue;
     suggestionButton.SetTitle(selectedType, UIControlState.Normal);
     if (selectedType == "StartsWith")
     {
         countryAutoComplete.SuggestionMode  = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeStartsWith;
         jobFieldAutoComplete.SuggestionMode = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeStartsWith;
     }
     else if (selectedType == "StartsWithCaseSensitive")
     {
         countryAutoComplete.SuggestionMode  = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeStartsWithCaseSensitive;
         jobFieldAutoComplete.SuggestionMode = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeStartsWithCaseSensitive;
     }
     else if (selectedType == "Contains")
     {
         countryAutoComplete.SuggestionMode  = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeContains;
         jobFieldAutoComplete.SuggestionMode = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeContains;
     }
     else if (selectedType == "ContainsWithCaseSensitive")
     {
         countryAutoComplete.SuggestionMode  = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeContainsCaseSensitive;
         jobFieldAutoComplete.SuggestionMode = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeContainsCaseSensitive;
     }
     else if (selectedType == "EndsWith")
     {
         countryAutoComplete.SuggestionMode  = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeEndsWith;
         jobFieldAutoComplete.SuggestionMode = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeEndsWith;
     }
     else if (selectedType == "EndsWithCaseSensitive")
     {
         countryAutoComplete.SuggestionMode  = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeEndsWithCaseSensitive;
         jobFieldAutoComplete.SuggestionMode = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeEndsWithCaseSensitive;
     }
     else if (selectedType == "Equals")
     {
         countryAutoComplete.SuggestionMode  = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeEquals;
         jobFieldAutoComplete.SuggestionMode = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeEquals;
     }
     else if (selectedType == "EqualsWithCaseSenstive")
     {
         countryAutoComplete.SuggestionMode  = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeEqualsCaseSensitive;
         jobFieldAutoComplete.SuggestionMode = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeEqualsCaseSensitive;
     }
 }
        private void SelectedIndexChanged1(object sender, PickerChangedEventArgs e)
        {
            this.selectedType = e.SelectedValue;
            if (selectedType == "Single Selection")
            {
                calendar.SelectionMode = SFCalenderSelectionMode.SFCalenderSelectionModeSingle;
            }
            else if (selectedType == "Multi Selection")
            {
                calendar.SelectionMode = SFCalenderSelectionMode.SFCalenderSelectionModeMultiple;
            }
            else if (selectedType == "Range Selection")
            {
                calendar.SelectionMode = SFCalenderSelectionMode.SFCalenderSelectionModeRange;
            }

            button_calendarView.SetTitle(selectedType.ToString(), UIControlState.Normal);
        }
Пример #17
0
 private void SelectedIndexChanged1(object sender, PickerChangedEventArgs e)
 {
     this.selectedType = e.SelectedValue;
     textbutton1.SetTitle(selectedType, UIControlState.Normal);
     if (selectedType == "Append")
     {
         autocomplete1.AutoCompleteMode = SFAutoCompleteAutoCompleteMode.SFAutoCompleteAutoCompleteModeAppend;
         autocomplete2.AutoCompleteMode = SFAutoCompleteAutoCompleteMode.SFAutoCompleteAutoCompleteModeAppend;
     }
     else if (selectedType == "Suggest")
     {
         autocomplete1.AutoCompleteMode = SFAutoCompleteAutoCompleteMode.SFAutoCompleteAutoCompleteModeSuggest;
         autocomplete2.AutoCompleteMode = SFAutoCompleteAutoCompleteMode.SFAutoCompleteAutoCompleteModeSuggest;
     }
     else if (selectedType == "SuggestAppend")
     {
         autocomplete1.AutoCompleteMode = SFAutoCompleteAutoCompleteMode.SFAutoCompleteAutoCompleteModeSuggestAppend;
         autocomplete2.AutoCompleteMode = SFAutoCompleteAutoCompleteMode.SFAutoCompleteAutoCompleteModeSuggestAppend;
     }
 }
Пример #18
0
 private void autoCompleteSelectedIndexChanged(object sender, PickerChangedEventArgs e)
 {
     this.selectedType = e.SelectedValue;
     autoCompleteButton.SetTitle(selectedType, UIControlState.Normal);
     if (selectedType == "Append")
     {
         countryAutoComplete.AutoCompleteMode  = SFAutoCompleteAutoCompleteMode.SFAutoCompleteAutoCompleteModeAppend;
         jobFieldAutoComplete.AutoCompleteMode = SFAutoCompleteAutoCompleteMode.SFAutoCompleteAutoCompleteModeAppend;
     }
     else if (selectedType == "Suggest")
     {
         countryAutoComplete.AutoCompleteMode  = SFAutoCompleteAutoCompleteMode.SFAutoCompleteAutoCompleteModeSuggest;
         jobFieldAutoComplete.AutoCompleteMode = SFAutoCompleteAutoCompleteMode.SFAutoCompleteAutoCompleteModeSuggest;
     }
     else if (selectedType == "SuggestAppend")
     {
         countryAutoComplete.AutoCompleteMode  = SFAutoCompleteAutoCompleteMode.SFAutoCompleteAutoCompleteModeSuggestAppend;
         jobFieldAutoComplete.AutoCompleteMode = SFAutoCompleteAutoCompleteMode.SFAutoCompleteAutoCompleteModeSuggestAppend;
     }
 }
Пример #19
0
 private void tabStripSelectedIndexChanged(object sender, PickerChangedEventArgs e)
 {
     this.selectedType = e.SelectedValue;
     tabStripButton.SetTitle(selectedType, UIControlState.Normal);
     if (selectedType == "Left")
     {
         rotator.NavigationStripPosition = SFRotatorNavigationStripPosition.Left;
     }
     else if (selectedType == "Top")
     {
         rotator.NavigationStripPosition = SFRotatorNavigationStripPosition.Top;
     }
     else if (selectedType == "Right")
     {
         rotator.NavigationStripPosition = SFRotatorNavigationStripPosition.Right;
     }
     else
     {
         rotator.NavigationStripPosition = SFRotatorNavigationStripPosition.Bottom;
     }
 }
Пример #20
0
 private void SelectedIndexChanged(object sender, PickerChangedEventArgs e)
 {
     this.selectedType = e.SelectedValue;
     positionbutton.SetTitle(selectedType, UIControlState.Normal);
     if (selectedType == "Left")
     {
         sideMenuController.Position = SFNavigationDrawerPosition.SFNavigationDrawerPositionLeft;
     }
     else if (selectedType == "Top")
     {
         sideMenuController.Position = SFNavigationDrawerPosition.SFNavigationDrawerPositionTop;
     }
     else if (selectedType == "Bottom")
     {
         sideMenuController.Position = SFNavigationDrawerPosition.SFNavigationDrawerPositionBottom;
     }
     else
     {
         sideMenuController.Position = SFNavigationDrawerPosition.SFNavigationDrawerPositionRight;
     }
 }
        private void SelectedIndexChanged1(object sender, PickerChangedEventArgs e)
        {
            this.selectedType = e.SelectedValue;
            if (selectedType == "French")
            {
                calendar.Locale = new NSLocale("fr-FR");
            }
            else if (selectedType == "Spanish")
            {
                calendar.Locale = new NSLocale("es-AR");
            }
            else if (selectedType == "English")
            {
                calendar.Locale = new NSLocale("en-US");
            }
            else if (selectedType == "Chinese")
            {
                calendar.Locale = new NSLocale("zh-CN");
            }

            buttonCalendarView.SetTitle(selectedType.ToString(), UIControlState.Normal);
        }
Пример #22
0
 private void comboBoxSelectedIndexChanged(object sender, PickerChangedEventArgs e)
 {
     this.selectedType = e.SelectedValue;
     comboBoxButton.SetTitle(selectedType, UIControlState.Normal);
     if (selectedType == "Append")
     {
         sizeComboBox.ComboBoxMode        = ComboBoxMode.Append;
         resolutionComboBox.ComboBoxMode  = ComboBoxMode.Append;
         orientationComboBox.ComboBoxMode = ComboBoxMode.Append;
     }
     else if (selectedType == "Suggest")
     {
         sizeComboBox.ComboBoxMode        = ComboBoxMode.Suggest;
         resolutionComboBox.ComboBoxMode  = ComboBoxMode.Suggest;
         orientationComboBox.ComboBoxMode = ComboBoxMode.Append;
     }
     else if (selectedType == "SuggestAppend")
     {
         sizeComboBox.ComboBoxMode        = ComboBoxMode.SuggestAppend;
         resolutionComboBox.ComboBoxMode  = ComboBoxMode.SuggestAppend;
         orientationComboBox.ComboBoxMode = ComboBoxMode.Append;
     }
 }
		private void SelectedIndexChanged(object sender, PickerChangedEventArgs e)
		{
			this.selectedType = e.SelectedValue;
			textbutton.SetTitle (selectedType, UIControlState.Normal);
			if (selectedType == "TopLeft") {
				rangeSlider1.TickPlacement = SFTickPlacement.SFTickPlacementTopLeft;
				rangeSlider2.TickPlacement = SFTickPlacement.SFTickPlacementTopLeft;
			} else if (selectedType == "BottomRight") {
				rangeSlider1.TickPlacement = SFTickPlacement.SFTickPlacementBottomRight;
				rangeSlider2.TickPlacement = SFTickPlacement.SFTickPlacementBottomRight;
			} else if (selectedType == "Inline") {
				rangeSlider1.TickPlacement = SFTickPlacement.SFTickPlacementInline;
				rangeSlider2.TickPlacement = SFTickPlacement.SFTickPlacementInline;
			} else if (selectedType == "Outside") {
				rangeSlider1.TickPlacement = SFTickPlacement.SFTickPlacementOutSide;
				rangeSlider2.TickPlacement = SFTickPlacement.SFTickPlacementOutSide;
			} else if (selectedType == "None") {
				rangeSlider1.TickPlacement = SFTickPlacement.SFTickPlacementNone;
				rangeSlider2.TickPlacement = SFTickPlacement.SFTickPlacementNone;
			} 
		}
		private void SelectedIndexChanged1(object sender, PickerChangedEventArgs e)
		{
			this.selectedType = e.SelectedValue;
			textbutton1.SetTitle (selectedType, UIControlState.Normal);
			if (selectedType == "TopLeft") {
				rangeSlider1.ValuePlacement = SFValuePlacement.SFValuePlacementTopLeft;
				rangeSlider2.ValuePlacement = SFValuePlacement.SFValuePlacementTopLeft;
			} else if (selectedType == "BottomRight") {
				rangeSlider1.ValuePlacement = SFValuePlacement.SFValuePlacementBottomRight;
				rangeSlider2.ValuePlacement = SFValuePlacement.SFValuePlacementBottomRight;
			}
		}
		private void SelectedIndexChanged(object sender, PickerChangedEventArgs e)
		{
			this.selectedType = e.SelectedValue;
			textbutton.SetTitle (selectedType, UIControlState.Normal);
			if (selectedType == "Left") {
				sideMenuController.Position = SFNavigationDrawerPosition.SFNavigationDrawerPositionLeft;
				sideMenuController.DrawerHeight =this.Frame.Height;
				if((UIDevice.CurrentDevice).UserInterfaceIdiom == UIUserInterfaceIdiom.Pad)
				{
					sideMenuController.DrawerWidth = (this.Bounds.Width*40)/100;
				}
				else
					sideMenuController.DrawerWidth = (this.Bounds.Width*60)/100;
				
				table.Frame=new CGRect (0, 0, sideMenuController.DrawerWidth, this.Frame.Height);
				lbe.Frame=new CGRect (0, 70, sideMenuController.DrawerWidth, 30);
				imageview.Frame =new CGRect ((sideMenuController.DrawerWidth/2)-25, 15, 50, 50);
			} 
			else if (selectedType == "Top") {
				sideMenuController.Position = SFNavigationDrawerPosition.SFNavigationDrawerPositionTop;
				sideMenuController.DrawerHeight =200;
				sideMenuController.DrawerWidth = this.Frame.Width;
				table.Frame=new CGRect (0, 0, this.Frame.Width, 100);
				lbe.Frame=new CGRect (0, 70, this.Frame.Width, 30);
				imageview.Frame =new CGRect ((this.Frame.Width/2)-25, 15, 50, 50);
			}
			else if (selectedType == "Bottom") {
				sideMenuController.Position = SFNavigationDrawerPosition.SFNavigationDrawerPositionBottom;
				sideMenuController.DrawerHeight =300;
				sideMenuController.DrawerWidth = this.Frame.Width;
				table.Frame=new CGRect (0, 0, this.Frame.Width, 100);
				lbe.Frame=new CGRect (0, 70, this.Frame.Width, 30);
				imageview.Frame =new CGRect ((this.Frame.Width/2)-25, 15, 50, 50);
			}
			else 
			{
				sideMenuController.Position=SFNavigationDrawerPosition.SFNavigationDrawerPositionRight;
				sideMenuController.DrawerHeight =this.Frame.Height;
				if((UIDevice.CurrentDevice).UserInterfaceIdiom == UIUserInterfaceIdiom.Pad)
				{
					sideMenuController.DrawerWidth = (this.Bounds.Width*40)/100;
				}
				else
					sideMenuController.DrawerWidth = (this.Bounds.Width*60)/100;
				
				table.Frame=new CGRect (0, 0, sideMenuController.DrawerWidth, this.Frame.Height);
				lbe.Frame=new CGRect (0, 70, sideMenuController.DrawerWidth, 30);
				imageview.Frame =new CGRect ((sideMenuController.DrawerWidth/2)-25, 15, 50, 50);
			} 
		}
		private void SelectedIndexChanged1(object sender, PickerChangedEventArgs e)
		{
			this.selectedType = e.SelectedValue;
			textbutton1.SetTitle (selectedType, UIControlState.Normal);
			if (selectedType == "SlideOnTop") {
				sideMenuController.Transition = SFNavigationDrawerTransition.SFNavigationDrawerTransitionSlideOnTop;
			} else if (selectedType == "Reveal") {
				sideMenuController.Transition = SFNavigationDrawerTransition.SFNavigationDrawerTransitionReveal;
			}
			else{
				sideMenuController.Transition = SFNavigationDrawerTransition.SFNavigationDrawerTransitionPush;
			}
		}
Пример #27
0
		private void SelectedIndexChanged(object sender, PickerChangedEventArgs e)
		{
			this.selectedType = e.SelectedValue;
			textbutton.SetTitle (selectedType, UIControlState.Normal);
			if (selectedType == "StartsWith") {
				autocomplete1.SuggestionMode = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeStartsWith;
				autocomplete2.SuggestionMode = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeStartsWith;
			} else if (selectedType == "StartsWithCaseSensitive") {
				autocomplete1.SuggestionMode = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeStartsWithCaseSensitive;
				autocomplete2.SuggestionMode = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeStartsWithCaseSensitive;
			} else if (selectedType == "Contains") {
				autocomplete1.SuggestionMode = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeContains;
				autocomplete2.SuggestionMode = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeContains;
			} else if (selectedType == "ContainsWithCaseSensitive") {
				autocomplete1.SuggestionMode = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeContainsCaseSensitive;
				autocomplete2.SuggestionMode = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeContainsCaseSensitive;

			} else if (selectedType == "EndsWith") {
				autocomplete1.SuggestionMode = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeEndsWith;
				autocomplete2.SuggestionMode = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeEndsWith;
			} else if (selectedType == "EndsWithCaseSensitive") {
				autocomplete1.SuggestionMode = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeEndsWithCaseSensitive;
				autocomplete2.SuggestionMode = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeEndsWithCaseSensitive;
			} else if (selectedType == "Equals") {
				autocomplete1.SuggestionMode = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeEquals;
				autocomplete2.SuggestionMode = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeEquals;

			}
			else if (selectedType == "EqualsWithCaseSenstive"){
				autocomplete1.SuggestionMode = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeEqualsCaseSensitive;
				autocomplete2.SuggestionMode = SFAutoCompleteSuggestionMode.SFAutoCompleteSuggestionModeEqualsCaseSensitive;
			}
		}
Пример #28
0
		private void SelectedIndexChanged1(object sender, PickerChangedEventArgs e)
		{
			this.selectedType = e.SelectedValue;
			textbutton1.SetTitle (selectedType, UIControlState.Normal);
			if (selectedType == "Append") {
				autocomplete1.AutoCompleteMode = SFAutoCompleteAutoCompleteMode.SFAutoCompleteAutoCompleteModeAppend;
				autocomplete2.AutoCompleteMode = SFAutoCompleteAutoCompleteMode.SFAutoCompleteAutoCompleteModeAppend;
			}
			else if (selectedType == "Suggest") {
				autocomplete1.AutoCompleteMode = SFAutoCompleteAutoCompleteMode.SFAutoCompleteAutoCompleteModeSuggest;
				autocomplete2.AutoCompleteMode = SFAutoCompleteAutoCompleteMode.SFAutoCompleteAutoCompleteModeSuggest;
			}
			else if (selectedType == "SuggestAppend")
			{
				autocomplete1.AutoCompleteMode = SFAutoCompleteAutoCompleteMode.SFAutoCompleteAutoCompleteModeSuggestAppend;
				autocomplete2.AutoCompleteMode = SFAutoCompleteAutoCompleteMode.SFAutoCompleteAutoCompleteModeSuggestAppend;
			}
		}
Пример #29
0
 private void experienceSelectedIndexChanged(object sender, PickerChangedEventArgs e)
 {
     this.selectedType = e.SelectedValue;
     experienceButton.SetTitle(selectedType, UIControlState.Normal);
 }
Пример #30
0
		private void SelectedIndexChanged2(object sender, PickerChangedEventArgs e)
		{
			this.selectedType = e.SelectedValue;
			textbutton1s.SetTitle (selectedType, UIControlState.Normal);
		}
 private void PickerIndexChanged(object sender, PickerChangedEventArgs e)
 {
     this.selectedType = e.SelectedValue;
 }
Пример #32
0
 private void SelectedIndexChanged2(object sender, PickerChangedEventArgs e)
 {
     this.selectedType = e.SelectedValue;
     textbutton1s.SetTitle(selectedType, UIControlState.Normal);
 }
Пример #33
0
 /// <summary>
 /// Change the index value
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void SelectedIndexChanged(object sender, PickerChangedEventArgs e)
 {
     this.selectedType = selectedorientation + e.SelectedValue;
     (diagram.LayoutManager.Layout as DirectedTreeLayout).UpdateLayout();
 }