wpf - 我在哪里可以设置 SystemParameters.ComboBoxPopupAnimationKey 在 windows2008 r2 服务器中?

标签 wpf styles

我最近看到组合框控件模板有以下行:

PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">

所以这是我的问题,我可以在 window2008 或 windows7 中在哪里设置这个键?

最佳答案

当我添加相同的问题时,我发现我可以直接在 App.xaml 中更改该参数

<Application x:Class="WpfApplication1.App"
         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         StartupUri="MainWindow.xaml">
    <Application.Resources>
        <ResourceDictionary>
            <PopupAnimation x:Key="{x:Static SystemParameters.ComboBoxPopupAnimationKey}">None</PopupAnimation>
        </ResourceDictionary>
    </Application.Resources>
</Application>

关于wpf - 我在哪里可以设置 SystemParameters.ComboBoxPopupAnimationKey 在 windows2008 r2 服务器中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21278904/

相关文章:

空组框的 WPF 拖放事件

.net - 将 FontStyles 和 FontWeights 绑定(bind)到 WPF ComboBox

jquery - Firefox 上的 div 问题中的图像

html - 如何将 2 个文本输入字段合二为一?

wpf - 反转不透明蒙版

c# - 事件CellEditEnding wpf时,Datagrid使用按钮更改列中的图像

java - Java 对 WPF 的回答是什么?

python - 有人可以帮我在 Pandas Python 的样式点更正以下代码吗

templates - JavaFX 2.0-样式/模板现有控件

C# 单元测试打开 Window.xaml