2017-04-24 51 views
0
> <prism:PopupWindowAction IsModal="True" 
> CenterOverAssociatedObject="True" ScrollViewer.CanContentScroll="True" 
> ScrollViewer.VerticalScrollBarVisibility="Visible"/> 

如何使这个弹出窗口可滚动? 我已经尝试添加ScrollViewer.VerticalScrollBarVisibility =“可见”但它没有任何区别。可滚动的棱镜:PopupWindowAction

回答

1

设置WindowContent属性设置为ScrollViewer元件:

<prism:PopupWindowAction IsModal="True"> 
    <prism:PopupWindowAction.WindowContent> 
     <ScrollViewer> 
      <ContentControl Content="{Binding Content}" /> 
     </ScrollViewer> 
    </prism:PopupWindowAction.WindowContent> 
</prism:PopupWindowAction> 
+0

<棱镜:PopupWindowAction已经内<棱镜:InteractionRequestTrigger SourceObject = “{结合通知请求,模式=单向}”>因此我需要它 mehwish

+0

这与您关于ScrollViewer的原始问题有什么关系? – mm8

+0

请记住接受答案,并在问题解决后投票表决。如果不是,请描述你目前的问题。 – mm8