Ejemplo n.º 1
0
		public DropdownList(Theme theme, Rectangle drawArea, List<object> values)
			: base(theme, theme.DropdownListBox, drawArea)
		{
			var selectBox = new SelectBox(theme,
				new Rectangle(drawArea.Left, drawArea.Top + drawArea.Height, drawArea.Width,
					drawArea.Height), values) { IsVisible = false };
			selectBox.LineClicked += SelectNewValue;
			Add(selectBox);
			AddChild(selectBox);
			Values = values;
			Clicked += ToggleSelectionBoxVisibility;
			FontText.HorizontalAlignment = HorizontalAlignment.Left;
		}
Ejemplo n.º 2
0
        public DropdownList(Theme theme, Rectangle drawArea, List <object> values)
            : base(theme, theme.DropdownListBox, drawArea)
        {
            var selectBox = new SelectBox(theme,
                                          new Rectangle(drawArea.Left, drawArea.Top + drawArea.Height, drawArea.Width,
                                                        drawArea.Height), values)
            {
                IsVisible = false
            };

            selectBox.LineClicked += SelectNewValue;
            Add(selectBox);
            AddChild(selectBox);
            Values   = values;
            Clicked += ToggleSelectionBoxVisibility;
            FontText.HorizontalAlignment = HorizontalAlignment.Left;
        }
Ejemplo n.º 3
0
		private void ProcessSelectBox(SelectBox selectBox)
		{
			selectBox.LineClicked += SelectNewValue;
			AddChild(selectBox);
		}
Ejemplo n.º 4
0
 public void SetUp()
 {
     selectBox = new SelectBox(Center, Values);
 }
Ejemplo n.º 5
0
 private void ProcessSelectBox(SelectBox selectBox)
 {
     selectBox.LineClicked += SelectNewValue;
     AddChild(selectBox);
 }