在Excel中启用“自定义任务”窗格的滚动

时间:2013-01-06 15:36:34

标签: c# excel vsto

我正在开发excel插件,我在Excel中的自定义任务窗格中添加了WPF控件,当将自定义窗格停靠在左侧时,窗格末尾的某些控件不会显示。 我想为自定义任务窗格应用滚动,我该如何实现

这是我的代码

 CustomerPane ctp = new CustomerPane();

 CustomTaskPane _customerTaskPane = Globals.ThisAddIn.CustomTaskPanes.Add(new 
 WpfPanelHost{ Child = ctp }, "Customers");

1 个答案:

答案 0 :(得分:0)

我解决了我的问题,我将滚动查看器添加到WPF用户控件并解决了我的问题

  <ScrollViewer VerticalScrollBarVisibility="Auto"> 
         //content here 
   </ScrollViewer>
相关问题