我在我的 Wpf 应用程序中使用 WPF 组合框。
以下是我的问题场景:
1.使用触摸打开组合框2.触摸下拉列表中
的任何项目3.组合
框下拉列表在闪烁后关闭。
鼠标点击不存在这个问题。
我为 Windows 制作了 AllowsTransparency="True"
系统规格: 1.Windows 10
2.Visual Studio 2017
3.Unchecked "Enable press and hold for right click" 在 Pen and Touch 设置中
以下是我的 Xaml.code:
<Window x:Class="WpfApp1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApp1"
mc:Ignorable="d" WindowState="Maximized" WindowStyle="None"
Title="MainWindow" Height="800" Width="800" Background="Transparent" AllowsTransparency="True">
<Grid>
<ComboBox Name="cb" Height="50" Width="50">
<ComboBoxItem>A</ComboBoxItem>
<ComboBoxItem>B</ComboBoxItem>
<ComboBoxItem>C</ComboBoxItem>
<ComboBoxItem>D</ComboBoxItem>
<ComboBoxItem>E</ComboBoxItem>
<ComboBoxItem>F</ComboBoxItem>
<ComboBoxItem>G</ComboBoxItem>
</ComboBox>
</Grid>
</Window>
请帮忙