0
在我的wpf應用程序中,我使用了一個組合框。設置背景圖片爲組合框在Windows 7中工作,但不是在Windows 10ComboBox背景圖像不能在Windows 10中工作
<ComboBox x:Name="MenubarTicketDet" Width="195" ItemsSource="{Binding}" SelectionChanged="_processticketcombobox" Foreground="Transparent" HorizontalAlignment="Center" BorderThickness="0" Height="30" Margin="46,4,16,331" BorderBrush="Transparent" IsHitTestVisible="True">
<ComboBox.Resources>
<sys:Double x:Key="{x:Static SystemParameters.VerticalScrollBarWidthKey}">0</sys:Double>
</ComboBox.Resources>
<!--</ComboBox>-->
<ComboBox.Background>
<ImageBrush ImageSource="Images/Newmenubarimages/list_box.png" Stretch="Uniform"/>
</ComboBox.Background>
<ComboBox.ItemContainerStyle>
<Style TargetType="{x:Type ComboBoxItem}">
<Setter Property="Padding" Value="5"/>
<Setter Property="Width" Value="200"/>
<Setter Property="FontFamily" Value="Courier New"/>
<Setter Property="Foreground" Value="Black"/>
</Style>
</ComboBox.ItemContainerStyle>
</ComboBox>
您需要發佈相關代碼,以便我們瞭解發生了什麼,您需要發佈[最小,完整和可驗證示例](http://stackoverflow.com/help/mcve) – Josh