我最近看到组合框控件模板有以下行:
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/