0

今日、ComboBox で奇妙な動作に遭遇しました。マウスの左ボタンを押すと、ComboBox の PointerPressed イベントが発生しません。マウスの右ボタンをクリックした場合にのみ発生します。なぜそれが起こっているのか誰か教えてください。マウスの左ボタンを使用して PointerPressed イベントを発生させたいと考えています。

<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
    <ComboBox x:Name="MyComboBox" Width="200" Height="60" PointerPressed="ComboBox_PointerPressed_1">
        <ComboBox.Items>
            <TextBlock Text="test1"/>
            <TextBlock Text="test2"/>
            <TextBlock Text="test3"/>
        </ComboBox.Items>
    </ComboBox>
</Grid>

private void ComboBox_PointerPressed_1(object sender, PointerRoutedEventArgs e)
{

}
4

0 に答える 0