在VSTO中显示/隐藏CustomTaskPane时的幻灯片动画 [英] Slide animation when showing/hiding CustomTaskPane in VSTO

查看:138
本文介绍了在VSTO中显示/隐藏CustomTaskPane时的幻灯片动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VSTO项目中有一个 CustomTaskPane ,可以使用显示/隐藏。Visible= true / false 属性。但是,这是一个普通的显示/隐藏元素,没有任何动画。

I have a CustomTaskPane in my VSTO project that I can show/hide using .Visible = true/false property. However it's an ordinary showing/hiding element with no animation whatsoever.

不过,Excel 2016附带的智能查找按钮也可以向左滑动打开Excel窗格/对。

However the "Smart Lookup" button, that comes with Excel 2016, also opens an Excel Pane by sliding left/right.

我想智能查找插件是使用JavaScript而不是过时的VSTO COM插件内置在较新的技术中,因此可能具有此类功能。

I guess that the Smart Lookup addin is built in the newer technology using JavaScript instead of the outdated VSTO COM plugin and thus might have such feature.

我也可以在VSTO插件中使用它吗?

Am I able to have it in the VSTO plugin as well?

推荐答案

要实现此目的,您需要安装 KB3114383 。安装此KB后,您可以通过更改以下注册表项(取决于您的Microsoft Office版本:15.0 = 2013、16.0 = 2016)来仅对自定义任务窗格禁用动画:

To achieve this you need to install KB3114383. With this KB installed, you can disable animations only for Custom Task Panes by changing the following registry key (depending on you your Microsoft Office version: 15.0 = 2013, 16.0 = 2016):

HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Toolbars
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Toolbars

添加以下DWORD值:

Add the following DWORD value:

DisableWindowTransitionsOnAddinTaskPanes

...并设置其值到1.所有其他动画,甚至本机任务窗格(如格式图表区域)动画都将保持不变。更多信息此处

... and set its value to 1. All other animations, even native task pane (such as Format Chart Area) animations, will remain unchanged. More info here.

这篇关于在VSTO中显示/隐藏CustomTaskPane时的幻灯片动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆