0
我正在使用WPF并具有可编辑的组合框。Combobox TouchDown和MouseDown不会触发
我添加了TouchDown和MouseDown事件处理程序,但是当我触摸组合框时它永远不会启动。
我打算做的是在触摸或单击组合框时将下拉列表向下列出。
我该怎么办?
<ComboBox Name="cbProductList" Height="45" Width="260" IsEditable="True"
ItemsSource="{Binding Source={StaticResource ProductsSource}}"
DisplayMemberPath="Name" SelectedValuePath="ProductId"
SelectedIndex="0" FontSize="23" FontFamily="Segoe WP"
VerticalAlignment="Stretch" FlowDirection="LeftToRight"
HorizontalAlignment="Left" HorizontalContentAlignment="Left"
SelectionChanged="cbProductList_SelectionChanged" />
发现这一点: How do I show the drop-down in a combobox in WPF?
但是当事情是类型此事件火灾。点击组合框时,我想让它触发。
你能提供的组合框XAML和事件处理程序签名 – Val 2013-03-18 05:59:13