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