浮动面板在wpf中。 [英] Floating Panel in wpf.
问题描述
我正在开发一个wpf项目,它需要一个屏幕在其一侧有浮动控制面板。
*使用.net Framework 4.0
* Wpf应用程序。
* navFrame中的页面控件。
*页面分为两列*和100.
* Column [0]包含主数据,并带有滚动条。
*我希望我的控制面板在Column [1]中在执行鼠标滚动时垂直浮动。
我尝试过使用停靠面板和/堆叠面板但是无法得到它。
希望我可以得到一些建议。 =
----------------------
谢谢
Abhishek。
不要将控制面板放到网格中滚动,显示在在底层的可滚动内容上分隔网格或画布,这类似的东西:
< grid >
< < span class =code-leadattribute> grid >
< scrollviewer > <! - 此处您的大数据 - >
< / scrollviewer >
< / grid >
< 网格 > <! - 此处的固定控制面板 - >
< textblock text = 固定文字 / >
< ; / grid >
< / grid >
I''m developing a wpf project, that requires a screen to have floating control panel on one side of it.
* Using .net Framework 4.0
* Wpf Application.
* A Page control in navFrame.
* Page divide into two columns * & 100.
* Column[0] Contains main data and has scroll bar with it.
* I want my control panel which is in Column[1] to float vertically when mouse scrolling is performed.
I''ve tried using dock panel &/ stack panel but couldn''t get it.
Hope I can get some suggestions. =
----------------------
Thanks
Abhishek.
don''t place your control panel into grid with scrolling, show it in the separate grid or maybe canvas over the underlying scrollable content, something of this kind:
<grid> <grid> <scrollviewer> <!-- your big data here --> </scrollviewer> </grid> <grid> <!-- your fixed control panel here --> <textblock text="fixed text" /> </grid> </grid>
这篇关于浮动面板在wpf中。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!