I use ComboBoxWindows in my application so that the user can select the time.
Xaml
<ComboBox Name="timePeriodComboBox"
HorizontalContentAlignment="Left"
Width="200" Height="60"
FontSize="30"
HorizontalAlignment="Center" VerticalAlignment="Top"
Grid.Column="2">
<ComboBox.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Vertical" />
</ItemsPanelTemplate>
</ComboBox.ItemsPanel>
</ComboBox>
WITH#
#region Initializing Frequency Combo Box
timePeriodComboBox.Items.Add("1 hour");
timePeriodComboBox.Items.Add("2 hours");
timePeriodComboBox.Items.Add("5 hours");
timePeriodComboBox.Items.Add("10 hours");
timePeriodComboBox.Items.Add("15 hours");
timePeriodComboBox.Items.Add("20 hours");
timePeriodComboBox.Items.Add("24 hours");
timePeriodComboBox.Items.Add("48 hours");
timePeriodComboBox.Items.Add("72 hours");
timePeriodComboBox.Items.Add("96 hours");
timePeriodComboBox.SelectedIndex = 0;
timePeriodComboBox.SelectionChanged += timePeriodComboBox_indexChanged;
#endregion
historyRequestModel.time = timePeriodComboBox.SelectedItem.ToString().Split(' ')[0];
The problem is that when I launch the application on an HP tablet, it doesnβt even allow me to touch the first item (since it is not clickable or is not selected or even highlighted while others do) on my list (1 hour) .
However, it works correctly when I run an emulator or simulator in visual studios. But other elements can be selected.
- , , - ? , , , , , . , combobox. , . . ?