Exemplo 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;
		}
Exemplo 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;
        }
Exemplo n.º 3
0
		private void ProcessSelectBox(SelectBox selectBox)
		{
			selectBox.LineClicked += SelectNewValue;
			AddChild(selectBox);
		}
Exemplo n.º 4
0
 public void SetUp()
 {
     selectBox = new SelectBox(Center, Values);
 }
Exemplo n.º 5
0
 private void ProcessSelectBox(SelectBox selectBox)
 {
     selectBox.LineClicked += SelectNewValue;
     AddChild(selectBox);
 }