数据网格滚动条基于机器不可见 [英] Data Grid Scroll bar not visible based on machine
问题描述
我试图在WPF中的DatGrid中显示数据。
i在一台计算机上运行此应用程序,此显示正确。并显示水平和垂直滚动条。
但我在不同的计算机上运行相同的应用程序。水平和垂直滚动条处于禁用状态。但是我可以使用鼠标滚动内容。
我如何在不同的机器中获得相同应用程序的不同行为
两个系统都是Windows 7 Professional SP1 64位
我将数据网格声明为
I tried to display data in DatGrid in WPF.
i run this application in one computer , this display correctly.And shown horizontal and vertical scroll bar .
But i run the same application on different computer. the horizontal and vertical scroll bar are disabled state . But i can scroll content using mouse.
How i get different behavior for the same application in different machine
Both system are Windows 7 Professional SP1 64bit
I declare the data grid as
<DataGrid x:Name="dgGroups" ItemsSource="{Binding Groups}" />
如何解决此问题?
提前致谢...
How can i resolve this issue?
Thanks in advance...
推荐答案
我发现问题,这是应该的o适用于当前页面的样式。在这里,我为页面资源中的标签和文本框添加了一种样式,并为每种样式添加了特定的键
我删除了该样式并按行样式添加,问题得到解决。
但我不知道它在几台机器上是如何工作的。
I detect the issue, this is due to the Style that apply on current page. Here i added one style for lable and textbox in page resource with specific the key for each style
I remove that style and add as in line style , the issue become resolved.
But i don't know how it work on few machine.
这篇关于数据网格滚动条基于机器不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!